fixed bot.send_message

This commit is contained in:
2025-08-14 14:04:20 +03:00
parent a60c6b2ee9
commit 51e1d59b12
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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,