From 9d1f3ccc3004cb8ab8588df9efcae45236d1a023 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 11 Feb 2022 23:10:25 +0700 Subject: [PATCH] no need --- program/callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/callback.py b/program/callback.py index acee73a..158f17f 100644 --- a/program/callback.py +++ b/program/callback.py @@ -1,6 +1,6 @@ # Copyright (C) 2021 By VeezMusicProject -from driver.core import user +from driver.core import user, bot from driver.queues import QUEUE from driver.database.dbpunish import is_gbanned_user from pyrogram import Client, filters @@ -8,7 +8,6 @@ from program.utils.inline import menu_markup, stream_markup from pyrogram.types import CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup from config import ( - BOT_NAME, BOT_USERNAME, GROUP_SUPPORT, OWNER_USERNAME, @@ -21,6 +20,7 @@ from config import ( @Client.on_callback_query(filters.regex("home_start")) async def set_start(_, query: CallbackQuery): user_id = query.from_user.id + BOT_NAME = (await bot.get_me()).first_name if await is_gbanned_user(user_id): await query.answer("❗️ You've blocked from using this bot!", show_alert=True) return