less-garbage
This commit is contained in:
@@ -64,6 +64,12 @@ async def messages_routing(msg, state):
|
|||||||
chat_id=cid,
|
chat_id=cid,
|
||||||
message_id=mid
|
message_id=mid
|
||||||
)
|
)
|
||||||
|
elif text == '/removed@welcomecenter_bot':
|
||||||
|
await telegram_api(
|
||||||
|
"deleteMessage",
|
||||||
|
chat_id=cid,
|
||||||
|
message_id=mid
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
toxic_score = detector(normalize(text))
|
toxic_score = detector(normalize(text))
|
||||||
toxic_perc = math.floor(toxic_score*100)
|
toxic_perc = math.floor(toxic_score*100)
|
||||||
|
Reference in New Issue
Block a user