fixed bot.send_message
This commit is contained in:
@@ -38,7 +38,7 @@ def register_handlers(bot: AsyncTeleBot):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
||||||
# Отправляем ошибку
|
# Отправляем ошибку
|
||||||
await send_message(
|
await bot.send_message(
|
||||||
chat_id=message.chat.id,
|
chat_id=message.chat.id,
|
||||||
text=COMMAND_MESSAGES['general_error'],
|
text=COMMAND_MESSAGES['general_error'],
|
||||||
message_thread_id=message.message_thread_id,
|
message_thread_id=message.message_thread_id,
|
||||||
|
@@ -38,7 +38,7 @@ def register_handlers(bot: AsyncTeleBot):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
||||||
# Отправляем ошибку
|
# Отправляем ошибку
|
||||||
await send_message(
|
await bot.send_message(
|
||||||
chat_id=message.chat.id,
|
chat_id=message.chat.id,
|
||||||
text=COMMAND_MESSAGES['general_error'],
|
text=COMMAND_MESSAGES['general_error'],
|
||||||
message_thread_id=message.message_thread_id,
|
message_thread_id=message.message_thread_id,
|
||||||
|
Reference in New Issue
Block a user