From 0809427959e66347a24ce8aba23cc941abb962a3 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Mon, 22 Jul 2024 11:13:16 +0300 Subject: [PATCH] start msg --- back/tgbot/tgbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):