@Client.on_message((filters.command('getsticker', PREFIXES) & filters.reply))
@use_chat_lang()
async def getstickeraspng(c: Client, m: Message, strings):
    sticker = m.reply_to_message.sticker
    if sticker:
        if sticker.is_animated:
            (await m.reply_text(strings('animated_not_supported')))
        elif (not sticker.is_animated):
            with tempfile.TemporaryDirectory() as tempdir:
                path = os.path.join(tempdir, 'getsticker')
            sticker_file = (await c.download_media(message=m.reply_to_message, file_name=f'{path}/{sticker.set_name}.png'))
            (await m.reply_to_message.reply_document(document=sticker_file, caption=strings('sticker_info').format(emoji=sticker.emoji, id=sticker.file_id)))
            shutil.rmtree(tempdir, ignore_errors=True)
    else:
        (await m.reply_text(strings('not_sticker')))
@Client.on_message((filters.command('getsticker', PREFIXES) & filters.reply))
@use_chat_lang()
async def getstickeraspng(c: Client, m: Message, strings):
    sticker = m.reply_to_message.sticker
    if sticker:
        if sticker.is_animated:
            (await m.reply_text(strings('animated_not_supported')))
        elif (not sticker.is_animated):
            with tempfile.TemporaryDirectory() as tempdir:
                path = os.path.join(tempdir, 'getsticker')
            sticker_file = (await c.download_media(message=m.reply_to_message, file_name=f'{path}/{sticker.set_name}.png'))
            (await m.reply_to_message.reply_document(document=sticker_file, caption=strings('sticker_info').format(emoji=sticker.emoji, id=sticker.file_id)))
            shutil.rmtree(tempdir, ignore_errors=True)
    else:
        (await m.reply_text(strings('not_sticker')))