diff --git a/server/custom.py b/server/custom.py index 674e9f0..298e551 100644 --- a/server/custom.py +++ b/server/custom.py @@ -133,6 +133,7 @@ async def handle_user_message(message: types.Message, super_chat_id: int, bot): return SendMessage(chat_id=message.chat.id, text=_("Не удаётся связаться с владельцем бота")) except exceptions.MessageToForwardNotFound: _logger.error("(exception) Message to forward not found") + return bot.incoming_messages_count = F("incoming_messages_count") + 1 await bot.save(update_fields=["incoming_messages_count"])