Fix NameError

This commit is contained in:
blank X 2020-12-25 08:38:55 +07:00
parent 0b2b204232
commit 018846b0c4
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ async def saucenao(client, message):
if not media:
await message.reply_text('Photo or GIF or Video or Sticker required')
return
if isinstance(media, Sticker) and sticker.is_animated:
if isinstance(media, Sticker) and media.is_animated:
await message.reply_text('No animated stickers')
return
with tempfile.TemporaryDirectory() as tempdir:

View File

@ -22,7 +22,7 @@ async def whatanime(client, message):
if not media:
await message.reply_text('Photo or GIF or Video or Sticker required')
return
if isinstance(media, Sticker) and sticker.is_animated:
if isinstance(media, Sticker) and media.is_animated:
await message.reply_text('No animated stickers')
return
with tempfile.TemporaryDirectory() as tempdir: