@Client.on_message((((((filters.document | filters.video) | filters.audio) | filters.voice) | filters.video_note) | filters.animation))
async def rename_filter(c, m):
    media = (m.document or m.video or m.audio or m.voice or m.video_note or m.animation)
    text = ''
    button = []
    try:
        filename = media.file_name
        text += f'''FileName:
{filename}
'''
    except:
        filename = None
    text += 'Select the desired Option'
    button.append([InlineKeyboardButton('Rename as File', callback_data='rename_file')])
    if media.mime_type.startswith('video/'):
        button.append([InlineKeyboardButton('Rename as Video', callback_data='rename_video')])
        button.append([InlineKeyboardButton('Convert as File', callback_data='convert_file')])
        button.append([InlineKeyboardButton('Convert as Video', callback_data='convert_video')])
    button.append([InlineKeyboardButton('Cancel ❌', callback_data='cancel')])
    markup = InlineKeyboardMarkup(button)
    try:
        (await c.send_chat_action(m.chat.id, 'typing'))
        (await m.reply_text(text, quote=True, reply_markup=markup, parse_mode='markdown', disable_web_page_preview=True))
    except Exception as e:
        log.info(str(e))
@Client.on_message((((((filters.document | filters.video) | filters.audio) | filters.voice) | filters.video_note) | filters.animation))
async def rename_filter(c, m):
    media = (m.document or m.video or m.audio or m.voice or m.video_note or m.animation)
    text = 
    button = []
    try:
        filename = media.file_name
        text += f'FileName:
{filename}
'
    except:
        filename = None
    text += 'Select the desired Option'
    button.append([InlineKeyboardButton('Rename as File', callback_data='rename_file')])
    if media.mime_type.startswith('video/'):
        button.append([InlineKeyboardButton('Rename as Video', callback_data='rename_video')])
        button.append([InlineKeyboardButton('Convert as File', callback_data='convert_file')])
        button.append([InlineKeyboardButton('Convert as Video', callback_data='convert_video')])
    button.append([InlineKeyboardButton('Cancel ❌', callback_data='cancel')])
    markup = InlineKeyboardMarkup(button)
    try:
        (await c.send_chat_action(m.chat.id, 'typing'))
        (await m.reply_text(text, quote=True, reply_markup=markup, parse_mode='markdown', disable_web_page_preview=True))
    except Exception as e:
        log.info(str(e))