tolerate-error2
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user