join-req-fix2

This commit is contained in:
Untone 2024-09-26 15:01:17 +03:00
parent 4951d4edff
commit 804b2f5945

View File

@ -35,7 +35,7 @@ async def messages_routing(msg, state):
toxic_score = detector(text) toxic_score = detector(text)
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.81: if toxic_score > 0.81:
if toxic_score > 0.95: if toxic_score > 0.90:
await redis.set(f"removed:{uid}:{cid}:{mid}", text) await redis.set(f"removed:{uid}:{cid}:{mid}", text)
await telegram_api( await telegram_api(
"deleteMessage", "deleteMessage",