This commit is contained in:
levina 2022-02-10 21:08:10 +07:00 committed by GitHub
parent ce1347f574
commit 611a57951b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,8 @@ async def set_commands(_, query: CallbackQuery):
reply_markup=InlineKeyboardMarkup( 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("Users Commands", callback_data="user_command"),
],[ ],[
InlineKeyboardButton("Sudo Commands", callback_data="sudo_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")) @Client.on_callback_query(filters.regex("sudo_command"))
async def set_sudo(_, query: CallbackQuery): async def set_sudo(_, query: CallbackQuery):
user_id = query.from_user.id user_id = query.from_user.id