From 4d9454719bf039fa03621d8eb3eabc86935b8fff Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 14:40:24 +0300 Subject: [PATCH] tolerate-error2 --- 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 85d75a2..b678d55 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -36,7 +36,7 @@ async def messages_routing(msg, state): logger.info(f'\ntext: {text}\ntoxic: {math.floor(toxic_score*100)}%') if toxic_score > 0.71: if toxic_score > 0.85: - await redis.execute("SET", f"removed:{uid}:{cid}:{mid}", text) + await redis.set(f"removed:{uid}:{cid}:{mid}", text) await telegram_api( "deleteMessage", chat_id=cid,