From 611a57951bb837c6ff6e74d336fbeb961140e9c1 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 10 Feb 2022 21:08:10 +0700 Subject: [PATCH] none --- program/callback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/callback.py b/program/callback.py index f7505ef..91a45cb 100644 --- a/program/callback.py +++ b/program/callback.py @@ -107,7 +107,8 @@ async def set_commands(_, query: CallbackQuery): reply_markup=InlineKeyboardMarkup( [ [ - InlineKeyboardButton("Admin Commands", callback_data="admin_command"), + InlineKeyboardButton("Admins Commands", callback_data="admin_command"), + ],[ InlineKeyboardButton("Users Commands", callback_data="user_command"), ],[ InlineKeyboardButton("Sudo Commands", callback_data="sudo_command"), @@ -176,6 +177,7 @@ async def set_admin(_, query: CallbackQuery): ), ) + @Client.on_callback_query(filters.regex("sudo_command")) async def set_sudo(_, query: CallbackQuery): user_id = query.from_user.id