tolerate-error2

This commit is contained in:
Untone 2024-09-26 14:40:24 +03:00
parent 0bc412c80f
commit 4d9454719b

View File

@ -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,