store-toxic-scores-3-days
This commit is contained in:
@@ -34,7 +34,7 @@ async def messages_routing(msg, state):
|
|||||||
if text == '/toxic@welcomecenter_bot':
|
if text == '/toxic@welcomecenter_bot':
|
||||||
latest_toxic_message_id = await redis.get(f"toxic:{cid}")
|
latest_toxic_message_id = await redis.get(f"toxic:{cid}")
|
||||||
if latest_toxic_message_id:
|
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(
|
await telegram_api(
|
||||||
"sendMessage",
|
"sendMessage",
|
||||||
chat_id=cid,
|
chat_id=cid,
|
||||||
|
Reference in New Issue
Block a user