From 960260ee9f98a36531b918c009baa00170a3526a Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 16:30:51 +0300 Subject: [PATCH] store-toxic-scores-3-days --- 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 4c40525..8062eb4 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -34,7 +34,7 @@ async def messages_routing(msg, state): if text == '/toxic@welcomecenter_bot': latest_toxic_message_id = await redis.get(f"toxic:{cid}") if latest_toxic_message_id: - rmsg = reply_msg.get("message_id", latest_toxic_message_id) + rmsg = reply_msg.get("message_id") or latest_toxic_message_id await telegram_api( "sendMessage", chat_id=cid,