From ba72f0e9d8e40f8f73dba368b1b01507caf545a9 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Wed, 31 Dec 2025 20:26:35 +0000 Subject: [PATCH] refactor: introduce settings submenu in Telegram bot Co-authored-by: ReturnFI <151555003+ReturnFI@users.noreply.github.com> --- core/scripts/telegrambot/utils/__init__.py | 1 + core/scripts/telegrambot/utils/common.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/scripts/telegrambot/utils/__init__.py b/core/scripts/telegrambot/utils/__init__.py index d771b25..4ec52d0 100644 --- a/core/scripts/telegrambot/utils/__init__.py +++ b/core/scripts/telegrambot/utils/__init__.py @@ -9,3 +9,4 @@ from .serverinfo import * from .cpu import * from .check_version import * from .weburl import * +from .settings import * \ No newline at end of file diff --git a/core/scripts/telegrambot/utils/common.py b/core/scripts/telegrambot/utils/common.py index e63b80a..963b885 100644 --- a/core/scripts/telegrambot/utils/common.py +++ b/core/scripts/telegrambot/utils/common.py @@ -4,5 +4,11 @@ def create_main_markup(): markup = types.ReplyKeyboardMarkup(resize_keyboard=True) markup.row('➕ Add User', '🔍 Show User') markup.row('🗑️ Delete User', '🖥️ Server Info') - markup.row('💾 Backup Server', '🔗 Get Webpanel URL') + markup.row('💾 Backup Server', '⚙️ Settings') return markup + +def create_settings_markup(): + markup = types.ReplyKeyboardMarkup(resize_keyboard=True) + markup.row('🔗 Get Webpanel URL') + markup.row('⬅️ Back') + return markup \ No newline at end of file