1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-05-24 09:33:25 +00:00
This commit is contained in:
er8dd 2024-03-22 04:16:38 +04:00
parent a34e633b98
commit 2305590899

View File

@ -206,7 +206,8 @@ async def handle_user_message(message: types.Message, super_chat_id: int, bot):
except (exceptions.Unauthorized, exceptions.ChatNotFound): except (exceptions.Unauthorized, exceptions.ChatNotFound):
return SendMessage(chat_id=message.chat.id, text=_("Не удаётся связаться с владельцем бота")) return SendMessage(chat_id=message.chat.id, text=_("Не удаётся связаться с владельцем бота"))
except exceptions.RetryAfter: except exceptions.RetryAfter:
return SendMessage(chat_id=message.chat.id, text=_("Слишком много сообщений, подождите одну минуту")) return SendMessage(chat_id=message.chat.id, text=_("Слишком много сообщений, подождите одну минуту"),
reply_to_message_id=message.message_id)
except exceptions.TelegramAPIError as err: except exceptions.TelegramAPIError as err:
_logger.error(f"(exception on forwarding) {err}") _logger.error(f"(exception on forwarding) {err}")
return return