diff --git a/back/tgbot/tgbot.py b/back/tgbot/tgbot.py index 5c8ff64..1862ba8 100644 --- a/back/tgbot/tgbot.py +++ b/back/tgbot/tgbot.py @@ -127,7 +127,7 @@ class TgBot: TgBot.app.add_error_handler(self.error_handler) async def start(self, update: Update, context: CallbackContext): - await update.message.reply_markdown_v2( + await update.effective_message.reply_markdown_v2( ( "Это бот для проведения инвентаризации\n" "/ter \-\- список территорий\n" @@ -135,7 +135,7 @@ class TgBot: "/my \-\- продолжить инвентаризацию\n" ), # reply_markup=ForceReply(selective=True), - reply_parameters=ReplyParameters(message_id=update.message.message_id), + reply_parameters=ReplyParameters(message_id=update.effective_message.message_id), ) async def my(self, update: Update, context: CallbackContext):