must delete

This commit is contained in:
levina 2022-02-08 11:05:45 +07:00 committed by GitHub
parent f13740e493
commit 7209e3a49e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,7 @@ async def song_downloader(_, message):
if await is_gbanned_user(user_id): if await is_gbanned_user(user_id):
await message.reply("❗️ **You've blocked from using this bot!**") await message.reply("❗️ **You've blocked from using this bot!**")
return return
await message.delete()
query = " ".join(message.command[1:]) query = " ".join(message.command[1:])
m = await message.reply("🔎 finding song...") m = await message.reply("🔎 finding song...")
ydl_ops = { ydl_ops = {
@ -95,6 +96,7 @@ async def video_downloader(_, message):
if await is_gbanned_user(user_id): if await is_gbanned_user(user_id):
await message.reply_text("❗️ **You've blocked from using this bot!**") await message.reply_text("❗️ **You've blocked from using this bot!**")
return return
await message.delete()
ydl_opts = { ydl_opts = {
"format": "best", "format": "best",
"keepvideo": True, "keepvideo": True,