mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Dev 3.x api 5.4 (#744)
* Re-generate API * Added new modules * Added handling new event type and approve/decline aliases for ChatJoinRequest * Fixed code-coverage * Bump API version * Added patch-notes
This commit is contained in:
parent
3ad16be507
commit
9b43a33b7f
99 changed files with 631 additions and 199 deletions
|
|
@ -15,6 +15,7 @@ from aiogram.methods import GetMe, GetUpdates, SendMessage
|
|||
from aiogram.types import (
|
||||
CallbackQuery,
|
||||
Chat,
|
||||
ChatJoinRequest,
|
||||
ChatMemberMember,
|
||||
ChatMemberUpdated,
|
||||
ChosenInlineResult,
|
||||
|
|
@ -418,6 +419,19 @@ class TestDispatcher:
|
|||
True,
|
||||
True,
|
||||
),
|
||||
pytest.param(
|
||||
"chat_join_request",
|
||||
Update(
|
||||
update_id=42,
|
||||
chat_join_request=ChatJoinRequest(
|
||||
chat=Chat(id=42, type="private"),
|
||||
from_user=User(id=42, is_bot=False, first_name="Test"),
|
||||
date=datetime.datetime.now(),
|
||||
),
|
||||
),
|
||||
True,
|
||||
True,
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_listen_update(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue