mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Bot API 7.0 tests for dispatcher handle update removed_chat_boost
This commit is contained in:
parent
78741e304e
commit
6feeb61e51
1 changed files with 17 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ from aiogram.types import (
|
|||
Chat,
|
||||
ChatJoinRequest,
|
||||
ChatBoost,
|
||||
ChatBoostRemoved,
|
||||
ChatBoostSourceGiveaway,
|
||||
ChatBoostUpdated,
|
||||
ChatMemberMember,
|
||||
|
|
@ -508,6 +509,22 @@ class TestDispatcher:
|
|||
True,
|
||||
False,
|
||||
),
|
||||
pytest.param(
|
||||
"removed_chat_boost",
|
||||
Update(
|
||||
update_id=42,
|
||||
removed_chat_boost=ChatBoostRemoved(
|
||||
chat=Chat(id=-42, type="channel"),
|
||||
boost_id="qwerty",
|
||||
remove_date=datetime.datetime.now(),
|
||||
source=ChatBoostSourceGiveaway(
|
||||
giveaway_message_id=77,
|
||||
),
|
||||
),
|
||||
),
|
||||
True,
|
||||
False,
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_listen_update(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue