- 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>
26 lines
1.4 KiB
Python
26 lines
1.4 KiB
Python
# app/bot/handlers/settings.py
|
|
from telebot.types import Message
|
|
from app.bot.keyboards.main_menu import get_main_menu
|
|
from app.bot.keyboards.settings_menu import get_settings_menu
|
|
|
|
def register_handlers(bot):
|
|
@bot.message_handler(func=lambda msg: msg.text == "Подписаться")
|
|
def handle_subscribe(message: Message):
|
|
bot.send_message(message.chat.id, "🔔 Функция подписки ещё не реализована.")
|
|
|
|
@bot.message_handler(func=lambda msg: msg.text == "Отписаться")
|
|
def handle_unsubscribe(message: Message):
|
|
bot.send_message(message.chat.id, "🔕 Функция отписки ещё не реализована.")
|
|
|
|
@bot.message_handler(func=lambda msg: msg.text == "Мои подписки")
|
|
def handle_my_subscriptions(message: Message):
|
|
bot.send_message(message.chat.id, "📄 Отображение подписок пока не реализовано.")
|
|
|
|
@bot.message_handler(func=lambda msg: msg.text == "Режим уведомлений")
|
|
def handle_notify_mode(message: Message):
|
|
bot.send_message(message.chat.id, "⚙️ Настройка режима уведомлений пока не реализована.")
|
|
|
|
@bot.message_handler(func=lambda msg: msg.text == "Назад")
|
|
def handle_back(message: Message):
|
|
bot.send_message(message.chat.id, "Возврат в главное меню", reply_markup=get_main_menu())
|