- Implemented the initial version of the web interface. refactor: Begin Telegram bot refactoring - Started restructuring the bot’s code for better maintainability. chore: Migrate to Flask project structure - Reorganized the application to follow Flask's project structure. cleanup: Extensive code cleanup - Removed redundant code and improved readability. Signed-off-by: UdoChudo <stream@udochudo.ru>
14 lines
434 B
Python
14 lines
434 B
Python
# app/bot/handlers/main_menu.py
|
|
from telebot.types import Message
|
|
from app.bot.keyboards.settings_menu import get_settings_menu
|
|
|
|
def register_handlers(bot):
|
|
@bot.message_handler(func=lambda msg: msg.text == "Настройки")
|
|
|
|
def handle_settings_menu(message: Message):
|
|
bot.send_message(
|
|
message.chat.id,
|
|
"Меню настроек:",
|
|
reply_markup=get_settings_menu()
|
|
)
|