This commit is contained in:
mihalin 2022-06-30 01:45:44 +03:00
parent 4b62762c13
commit aa456d3e8d

View File

@ -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"])