Skip to content

Commit

Permalink
Merge pull request #50 from azimazizov9150/patch-13
Browse files Browse the repository at this point in the history
  • Loading branch information
NotReallyShikhar committed Jan 11, 2022
2 parents 24886da + f89d61a commit 94373df
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Yukki/Plugins/Song.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@
)
@PermissionCheck
async def play(_, message: Message):
if message.sender_chat:
return await message.reply_text(
"You're an __Anonymous Admin__ in this Chat Group!\nRevert back to User Account From Admin Rights."
)
await message.delete()
if message.chat.type == "private":
pass
else:
if message.sender_chat:
return await message.reply_text(
"You're an __Anonymous Admin__ in this Chat Group!\nRevert back to User Account From Admin Rights."
)
try:
await message.delete()
except:
pass
url = get_url(message)
if url:
mystic = await message.reply_text("🔄 Processing URL... Please Wait!")
Expand Down

0 comments on commit 94373df

Please sign in to comment.