From 244838d304f47750c1910f36b1e77be2476c88a1 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 6 Feb 2022 13:50:52 +0700 Subject: [PATCH] fixes and reformat --- program/admins.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/program/admins.py b/program/admins.py index 78c44d2..8ec210c 100644 --- a/program/admins.py +++ b/program/admins.py @@ -204,7 +204,7 @@ async def unmute(client, m: Message): @Client.on_callback_query(filters.regex("cbpause")) async def cbpause(_, query: CallbackQuery): - user_id = query.message.from_user.id + user_id = query.from_user.id if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -227,7 +227,7 @@ async def cbpause(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbresume")) async def cbresume(_, query: CallbackQuery): - user_id = query.message.from_user.id + user_id = query.from_user.id if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -250,7 +250,7 @@ async def cbresume(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbstop")) async def cbstop(_, query: CallbackQuery): - user_id = query.message.from_user.id + user_id = query.from_user.id if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -271,7 +271,7 @@ async def cbstop(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbmute")) async def cbmute(_, query: CallbackQuery): - user_id = query.message.from_user.id + user_id = query.from_user.id if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return @@ -294,7 +294,7 @@ async def cbmute(_, query: CallbackQuery): @Client.on_callback_query(filters.regex("cbunmute")) async def cbunmute(_, query: CallbackQuery): - user_id = query.message.from_user.id + user_id = query.from_user.id if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return