From 51e1d59b1255c2e3e44f0b113034215486a6c0bf Mon Sep 17 00:00:00 2001 From: Muzifs Date: Thu, 14 Aug 2025 14:04:20 +0300 Subject: [PATCH] fixed bot.send_message --- src/modules/help.py | 2 +- src/modules/start.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/help.py b/src/modules/help.py index 726c714..0894682 100644 --- a/src/modules/help.py +++ b/src/modules/help.py @@ -38,7 +38,7 @@ def register_handlers(bot: AsyncTeleBot): except Exception as e: # Отправляем ошибку - await send_message( + await bot.send_message( chat_id=message.chat.id, text=COMMAND_MESSAGES['general_error'], message_thread_id=message.message_thread_id, diff --git a/src/modules/start.py b/src/modules/start.py index 1ad4123..2b76ff2 100644 --- a/src/modules/start.py +++ b/src/modules/start.py @@ -38,7 +38,7 @@ def register_handlers(bot: AsyncTeleBot): except Exception as e: # Отправляем ошибку - await send_message( + await bot.send_message( chat_id=message.chat.id, text=COMMAND_MESSAGES['general_error'], message_thread_id=message.message_thread_id,