mirror of
https://github.com/civsocit/olgram.git
synced 2025-05-24 09:23:26 +00:00
f
This commit is contained in:
parent
a34e633b98
commit
2305590899
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user