This commit is contained in:
levina 2022-02-06 21:30:13 +07:00 committed by GitHub
parent f4dd6fe6f1
commit 910684a97e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,10 +27,10 @@ is_downloading = False
@Client.on_message(command(["song", f"song@{bn}"]) & ~filters.edited) @Client.on_message(command(["song", f"song@{bn}"]) & ~filters.edited)
def song_downloader(_, message): async def song_downloader(_, message):
global is_downloading global is_downloading
user_id = message.from_user.id user_id = message.from_user.id
if is_gbanned_user(user_id): if await is_gbanned_user(user_id):
message.reply("❗️ **You've blocked from using this bot!**") message.reply("❗️ **You've blocked from using this bot!**")
return return
query = " ".join(message.command[1:]) query = " ".join(message.command[1:])