Bot API 7.0 tests for dispatcher handle update removed_chat_boost

This commit is contained in:
Suren Khorenyan 2023-12-30 22:49:34 +03:00
parent 78741e304e
commit 6feeb61e51

View file

@ -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(