From dac387d566b146059dd17c747d40fdee05798a68 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 11 Feb 2022 15:24:32 +0200 Subject: [PATCH] Fixed unknown chat_action value --- aiogram/utils/chat_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/chat_action.py b/aiogram/utils/chat_action.py index d9ab1ee3..b67f0a32 100644 --- a/aiogram/utils/chat_action.py +++ b/aiogram/utils/chat_action.py @@ -281,7 +281,7 @@ class ChatActionMiddleware(BaseMiddleware): return await handler(event, data) bot = data["bot"] - chat_action = get_flag(data, "chat_action") + chat_action = get_flag(data, "chat_action") or "typing" kwargs = {} if isinstance(chat_action, dict): if initial_sleep := chat_action.get("initial_sleep"):