tolerate-error2
This commit is contained in:
parent
0bc412c80f
commit
4d9454719b
|
@ -36,7 +36,7 @@ async def messages_routing(msg, state):
|
||||||
logger.info(f'\ntext: {text}\ntoxic: {math.floor(toxic_score*100)}%')
|
logger.info(f'\ntext: {text}\ntoxic: {math.floor(toxic_score*100)}%')
|
||||||
if toxic_score > 0.71:
|
if toxic_score > 0.71:
|
||||||
if toxic_score > 0.85:
|
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(
|
await telegram_api(
|
||||||
"deleteMessage",
|
"deleteMessage",
|
||||||
chat_id=cid,
|
chat_id=cid,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user