mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Added full support of Bot API 6.5 (#1112)
* Added full support of Bot API 6.5 * Shut up, linters (Fixed errors) * Oops. Added lost files. * Fixed tests * Added changes description * Update description from docs * Fixed anchors * Update Butcher * Added danger zone to changelog * Type
This commit is contained in:
parent
3428924d63
commit
e59d4652bf
47 changed files with 1218 additions and 184 deletions
|
|
@ -434,8 +434,9 @@ class TestDispatcher:
|
|||
Update(
|
||||
update_id=42,
|
||||
chat_join_request=ChatJoinRequest(
|
||||
chat=Chat(id=42, type="private"),
|
||||
chat=Chat(id=-42, type="private"),
|
||||
from_user=User(id=42, is_bot=False, first_name="Test"),
|
||||
user_chat_id=42,
|
||||
date=datetime.datetime.now(),
|
||||
),
|
||||
),
|
||||
|
|
@ -589,8 +590,7 @@ class TestDispatcher:
|
|||
"aiogram.dispatcher.dispatcher.Dispatcher.silent_call_request",
|
||||
new_callable=AsyncMock,
|
||||
) as mocked_silent_call_request:
|
||||
result = await dispatcher._process_update(bot=bot, update=Update(update_id=42))
|
||||
print(result)
|
||||
await dispatcher._process_update(bot=bot, update=Update(update_id=42))
|
||||
mocked_silent_call_request.assert_awaited()
|
||||
|
||||
async def test_process_update_exception(self, bot: MockedBot, caplog):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue