Fix NameError
This commit is contained in:
parent
0b2b204232
commit
018846b0c4
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue