From a9203fdeaf3e6cd6ab7d16856e3b646ac3e00a5b Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 21:00:55 +0300 Subject: [PATCH] toxic-debug14 --- handlers/messages_routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/messages_routing.py b/handlers/messages_routing.py index a1a1b9d..4992b11 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -12,7 +12,7 @@ logging.basicConfig(level=logging.DEBUG) async def messages_routing(msg, state): cid = msg["chat"]["id"] uid = msg["from"]["id"] - text = msg.get("text") + text = msg.get("text", msg.get("caption")) reply_msg = msg.get("reply_to_message") if cid == uid: