mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
chat not found handle
This commit is contained in:
parent
bfcf8ca414
commit
f7a4188a53
@ -129,7 +129,7 @@ async def handle_user_message(message: types.Message, super_chat_id: int, bot):
|
||||
# Пересылаем сообщение в супер-чат
|
||||
try:
|
||||
await send_to_superchat(is_super_group, message, super_chat_id, bot)
|
||||
except exceptions.Unauthorized:
|
||||
except (exceptions.Unauthorized, exceptions.ChatNotFound):
|
||||
return SendMessage(chat_id=message.chat.id, text=_("Не удаётся связаться с владельцем бота"))
|
||||
|
||||
bot.incoming_messages_count = F("incoming_messages_count") + 1
|
||||
|
Loading…
Reference in New Issue
Block a user