removed-fix5
This commit is contained in:
parent
fe3b53329d
commit
b5f7f039a6
|
@ -42,7 +42,7 @@ async def messages_routing(msg, state):
|
|||
scoring_msg_id = reply_msg.get("message_id", int(latest_toxic_message_id)) if reply_msg else int(latest_toxic_message_id)
|
||||
one_score = await redis.get(f"toxic:{cid}:{uid}:{scoring_msg_id}")
|
||||
emoji = '😳' if toxic_score > 90 else '😟' if toxic_score > 80 else '😏' if toxic_score > 60 else '🙂' if toxic_score > 20 else '😇'
|
||||
text = f"{int(one_score)}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}"
|
||||
text = f"{int(one_score or 0)}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}"
|
||||
await telegram_api(
|
||||
"deleteMessage",
|
||||
chat_id=cid,
|
||||
|
|
Loading…
Reference in New Issue
Block a user