less-log2

This commit is contained in:
Untone 2024-09-26 17:42:02 +03:00
parent 834a63f5e6
commit c9975f7b7f

View File

@ -48,7 +48,7 @@ async def messages_routing(msg, state):
scoring_msg_id = reply_msg.get("message_id") or latest_toxic_message_id scoring_msg_id = reply_msg.get("message_id") or latest_toxic_message_id
toxic_score = await redis.get(f"toxic:{cid}:{uid}:{scoring_msg_id}") toxic_score = await redis.get(f"toxic:{cid}:{uid}:{scoring_msg_id}")
if toxic_score: if toxic_score:
text = f"{toxic_score}% токсичности" text = f"{int(toxic_score)}% токсичности"
if text: if text:
await telegram_api( await telegram_api(
"sendMessage", "sendMessage",