async def edge_curved(client, message):
    try:
        userid = str(message.chat.id)
        if (not os.path.isdir(f'./DOWNLOADS/{userid}')):
            os.makedirs(f'./DOWNLOADS/{userid}')
        download_location = ((((('./DOWNLOADS' + '/') + userid) + '/') + userid) + '.jpg')
        edit_img_loc = (((('./DOWNLOADS' + '/') + userid) + '/') + 'edge_curved.webp')
        if (not message.reply_to_message.empty):
            msg = (await message.reply_to_message.reply_text('Downloading image', quote=True))
            a = (await client.download_media(message=message.reply_to_message, file_name=download_location))
            (await msg.edit('Processing Image...'))
            im = Image.open(a)
            im = add_corners(im, 100)
            im.save(edit_img_loc)
            (await message.reply_chat_action('upload_photo'))
            (await message.reply_to_message.reply_sticker(edit_img_loc, quote=True))
            (await msg.delete())
        else:
            (await message.reply_text('Why did you delete that??'))
        try:
            shutil.rmtree(f'./DOWNLOADS/{userid}')
        except Exception:
            pass
    except Exception as e:
        print(('edge_curved-error - ' + str(e)))
        if ('USER_IS_BLOCKED' in str(e)):
            return
        else:
            try:
                (await message.reply_to_message.reply_text('Something went wrong!', quote=True))
            except Exception:
                return
async def edge_curved(client, message):
    try:
        userid = str(message.chat.id)
        if (not os.path.isdir(f'./DOWNLOADS/{userid}')):
            os.makedirs(f'./DOWNLOADS/{userid}')
        download_location = ((((('./DOWNLOADS' + '/') + userid) + '/') + userid) + '.jpg')
        edit_img_loc = (((('./DOWNLOADS' + '/') + userid) + '/') + 'edge_curved.webp')
        if (not message.reply_to_message.empty):
            msg = (await message.reply_to_message.reply_text('Downloading image', quote=True))
            a = (await client.download_media(message=message.reply_to_message, file_name=download_location))
            (await msg.edit('Processing Image...'))
            im = Image.open(a)
            im = add_corners(im, 100)
            im.save(edit_img_loc)
            (await message.reply_chat_action('upload_photo'))
            (await message.reply_to_message.reply_sticker(edit_img_loc, quote=True))
            (await msg.delete())
        else:
            (await message.reply_text('Why did you delete that??'))
        try:
            shutil.rmtree(f'./DOWNLOADS/{userid}')
        except Exception:
            pass
    except Exception as e:
        print(('edge_curved-error - ' + str(e)))
        if ('USER_IS_BLOCKED' in str(e)):
            return
        else:
            try:
                (await message.reply_to_message.reply_text('Something went wrong!', quote=True))
            except Exception:
                return