mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update chat_action.py
This commit is contained in:
parent
3ba724e2fa
commit
649bc8c85d
1 changed files with 2 additions and 4 deletions
|
|
@ -349,12 +349,10 @@ class ChatActionMiddleware(BaseMiddleware):
|
|||
|
||||
async def __call__(
|
||||
self,
|
||||
handler: Callable[[TelegramObject, Dict[str, Any]], Awaitable[Any]],
|
||||
event: TelegramObject,
|
||||
handler: Callable[[Message, Dict[str, Any]], Awaitable[Any]],
|
||||
event: Message,
|
||||
data: Dict[str, Any],
|
||||
) -> Any:
|
||||
if not isinstance(event, Message):
|
||||
return await handler(event, data)
|
||||
bot = data["bot"]
|
||||
|
||||
chat_action = get_flag(data, "chat_action") or "typing"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue