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 message_reaction_count
This commit is contained in:
parent
d20852f59a
commit
4451c4d344
1 changed files with 21 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ from aiogram.types import (
|
|||
ChosenInlineResult,
|
||||
InlineQuery,
|
||||
Message,
|
||||
MessageReactionCountUpdated,
|
||||
MessageReactionUpdated,
|
||||
Poll,
|
||||
PollAnswer,
|
||||
|
|
@ -33,6 +34,7 @@ from aiogram.types import (
|
|||
ShippingQuery,
|
||||
Update,
|
||||
User,
|
||||
ReactionCount,
|
||||
ReactionTypeCustomEmoji,
|
||||
)
|
||||
from aiogram.types.error_event import ErrorEvent
|
||||
|
|
@ -465,6 +467,25 @@ class TestDispatcher:
|
|||
True,
|
||||
True,
|
||||
),
|
||||
pytest.param(
|
||||
"message_reaction_count",
|
||||
Update(
|
||||
update_id=42,
|
||||
message_reaction_count=MessageReactionCountUpdated(
|
||||
chat=Chat(id=-42, type="channel"),
|
||||
message_id=12345,
|
||||
date=datetime.datetime.now(),
|
||||
reactions=[
|
||||
ReactionCount(
|
||||
type=ReactionTypeCustomEmoji(custom_emoji="qwerty"),
|
||||
total_count=123,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
True,
|
||||
False,
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_listen_update(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue