Fix NameError
This commit is contained in:
parent
0b2b204232
commit
018846b0c4
|
@ -35,7 +35,7 @@ async def saucenao(client, message):
|
||||||
if not media:
|
if not media:
|
||||||
await message.reply_text('Photo or GIF or Video or Sticker required')
|
await message.reply_text('Photo or GIF or Video or Sticker required')
|
||||||
return
|
return
|
||||||
if isinstance(media, Sticker) and sticker.is_animated:
|
if isinstance(media, Sticker) and media.is_animated:
|
||||||
await message.reply_text('No animated stickers')
|
await message.reply_text('No animated stickers')
|
||||||
return
|
return
|
||||||
with tempfile.TemporaryDirectory() as tempdir:
|
with tempfile.TemporaryDirectory() as tempdir:
|
||||||
|
|
|
@ -22,7 +22,7 @@ async def whatanime(client, message):
|
||||||
if not media:
|
if not media:
|
||||||
await message.reply_text('Photo or GIF or Video or Sticker required')
|
await message.reply_text('Photo or GIF or Video or Sticker required')
|
||||||
return
|
return
|
||||||
if isinstance(media, Sticker) and sticker.is_animated:
|
if isinstance(media, Sticker) and media.is_animated:
|
||||||
await message.reply_text('No animated stickers')
|
await message.reply_text('No animated stickers')
|
||||||
return
|
return
|
||||||
with tempfile.TemporaryDirectory() as tempdir:
|
with tempfile.TemporaryDirectory() as tempdir:
|
||||||
|
|
Loading…
Reference in New Issue