From dab10e77b6a05ae67b130aeda22c3d847b90590a Mon Sep 17 00:00:00 2001 From: Erfan <143827987+erfjab@users.noreply.github.com> Date: Sat, 9 Nov 2024 02:27:36 +0330 Subject: [PATCH] chore: change HOME to HOLDERBOT keyboard lang key (#95) --- utils/keys.py | 14 +++++++------- utils/lang.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/keys.py b/utils/keys.py index 910e1c7..d03a4ef 100644 --- a/utils/keys.py +++ b/utils/keys.py @@ -61,7 +61,7 @@ def cancel() -> InlineKeyboardMarkup: InlineKeyboardBuilder() .row( InlineKeyboardButton( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ) ) @@ -89,7 +89,7 @@ def user_status(action: AdminActions) -> InlineKeyboardMarkup: ), ) kb.button( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ) return kb.adjust(2).as_markup() @@ -129,7 +129,7 @@ def inbounds( callback_data=UserInboundsCallbacks(action=action, is_done=True).pack(), ), InlineKeyboardButton( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ), ) @@ -150,7 +150,7 @@ def admins(admins: list[Admin]) -> InlineKeyboardMarkup: kb.row( InlineKeyboardButton( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ), ) @@ -186,7 +186,7 @@ def node_monitoring() -> InlineKeyboardMarkup: kb.adjust(2) kb.row( InlineKeyboardButton( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ), ) @@ -213,7 +213,7 @@ def users() -> InlineKeyboardMarkup: ) kb.row( InlineKeyboardButton( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ), width=1, @@ -249,7 +249,7 @@ def select_nodes( kb.adjust(2) kb.row( InlineKeyboardButton( - text=KeyboardTexts.HOME, + text=KeyboardTexts.HOLDERBOT, callback_data=PagesCallbacks(page=PagesActions.HOME).pack(), ), InlineKeyboardButton( diff --git a/utils/lang.py b/utils/lang.py index c8d9755..1413430 100644 --- a/utils/lang.py +++ b/utils/lang.py @@ -12,7 +12,7 @@ class KeyboardTextsFile(BaseSettings): env_file=".env", extra="ignore" ) - HOME: str = "🏠 Back to home" + HOLDERBOT: str = "🏠 Back to home" USER_CREATE: str = "👤 User Create" NODE_MONITORING: str = "🗃 Node Monitoring" ACTIVE: str = "✅ Active"