mirror of
https://github.com/civsocit/olgram.git
synced 2025-05-24 17:13:25 +00:00
test
This commit is contained in:
parent
a1d313d8f2
commit
1ffa6b58f8
|
@ -52,7 +52,7 @@ async def message_handler(message, *args, **kwargs):
|
|||
chat_id = int(chat_id)
|
||||
try:
|
||||
await message.copy_to(chat_id)
|
||||
except exceptions.MessageError:
|
||||
except (exceptions.MessageError, exceptions.BotBlocked):
|
||||
await message.reply("Невозможно переслать сообщение: возможно, автор заблокировал бота")
|
||||
return
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user