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: