feat: Develop web interface
- 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>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# app/bot/keyboards/main_menu.py
|
||||
from telebot.types import ReplyKeyboardMarkup, KeyboardButton
|
||||
|
||||
def get_main_menu():
|
||||
markup = ReplyKeyboardMarkup(resize_keyboard=True)
|
||||
markup.add(
|
||||
KeyboardButton("Настройки"),
|
||||
KeyboardButton("Активные проблемы"),
|
||||
KeyboardButton("Помощь")
|
||||
)
|
||||
return markup
|
||||
@@ -0,0 +1,9 @@
|
||||
# app/bot/keyboards/settings_menu.py
|
||||
from telebot.types import ReplyKeyboardMarkup, KeyboardButton
|
||||
|
||||
def get_settings_menu():
|
||||
markup = ReplyKeyboardMarkup(resize_keyboard=True)
|
||||
markup.add(KeyboardButton("Подписаться"),KeyboardButton("Отписаться"))
|
||||
markup.add(KeyboardButton("Мои подписки"),KeyboardButton("Режим уведомлений"))
|
||||
markup.add(KeyboardButton("Назад"))
|
||||
return markup
|
||||
Reference in New Issue
Block a user