diff --git a/handlers/messages_routing.py b/handlers/messages_routing.py index 621a85b..70d32b3 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -45,7 +45,7 @@ async def messages_routing(msg, state): if one_score: logger.debug(one_score) emoji = '😳' if toxic_score > 90 else '😟' if toxic_score > 80 else '😏' if toxic_score > 60 else '🙂' if toxic_score > 20 else '😇' - text = f"{one_score}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}" + text = f"{int(one_score)}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}" await telegram_api( "sendMessage", chat_id=cid,