From 7b35b5ad97742605720047b6d8e53e3e5c78fd59 Mon Sep 17 00:00:00 2001 From: Rykov7 Date: Mon, 23 Jan 2023 18:58:35 +0300 Subject: [PATCH] refactoring --- app/bot.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/bot.py b/app/bot.py index e42f6c3..68e5957 100644 --- a/app/bot.py +++ b/app/bot.py @@ -26,11 +26,7 @@ def start(message: types.Message): markup = types.InlineKeyboardMarkup() markup.add(RULES, FAQ, LIB, row_width=1) - answer = "Начни с прочтения" - if message.reply_to_message: - bot.reply_to(message.reply_to_message, answer, reply_maarkup=markup) - else: - bot.send_message(message.chat.id, answer, reply_markup=markup) + send_or_reply(message, "Начни с прочтения", reply_markup=markup) """