Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
stickers: kang remove useless try
Browse files Browse the repository at this point in the history
Change-Id: I0ab46c4b8f616c0d81be32c1b0105c863a80db22
  • Loading branch information
adekmaulana committed May 18, 2020
1 parent 1eb4ae0 commit 6a67d2f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions userbot/modules/stickers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@ async def kang(args):
await bot.download_file(message.media.document, photo)
if (DocumentAttributeFilename(file_name='sticker.webp') in
message.media.document.attributes):
try:
emoji = message.media.document.attributes[1].alt
except Exception:
pass
else:
if emoji != '':
emojibypass = True
emoji = message.media.document.attributes[1].alt
if emoji != '':
emojibypass = True
elif "tgsticker" in message.media.document.mime_type:
await args.edit(f"`{random.choice(KANGING_STR)}`")
await bot.download_file(message.media.document,
Expand Down

0 comments on commit 6a67d2f

Please sign in to comment.