From 3ce0bb85b347125d178470fd28d30b1a8d9e55c9 Mon Sep 17 00:00:00 2001 From: Rykov7 Date: Fri, 7 Oct 2022 03:36:30 +0300 Subject: [PATCH] add library menu --- app/bot.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/bot.py b/app/bot.py index c0500fb..7d9afdd 100644 --- a/app/bot.py +++ b/app/bot.py @@ -40,6 +40,18 @@ def send_lutz_command(message): logging(message) +@bot.message_handler(commands=['lib', 'library', 'book', 'books']) +def send_lutz_command(message): + bot.send_message(message.chat.id, + 'πŸ“š Π‘ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ° питониста\n' + 'Бписок Ρ€Π΅ΠΊΠΎΠΌΠ΅Π½Π΄ΡƒΠ΅ΠΌΠΎΠΉ Ρ‡Π°Ρ‚ΠΎΠΌ Π»ΠΈΡ‚Π΅Ρ€Π°Ρ‚ΡƒΡ€Ρ‹.', + parse_mode='HTML', + disable_notification=True, + disable_web_page_preview=True, + ) + logging(message) + + @bot.message_handler(commands=['start']) def send_start_notify_admin(message): bot.send_message(