less-garbage

This commit is contained in:
Untone 2024-09-26 23:07:05 +03:00
parent cca0658ce1
commit b4e6c87065

View File

@ -64,6 +64,12 @@ async def messages_routing(msg, state):
chat_id=cid,
message_id=mid
)
elif text == '/removed@welcomecenter_bot':
await telegram_api(
"deleteMessage",
chat_id=cid,
message_id=mid
)
else:
toxic_score = detector(normalize(text))
toxic_perc = math.floor(toxic_score*100)