This commit is contained in:
yasir 2023-01-28 21:30:43 +07:00
parent 3051159d20
commit 64556a3a36

View file

@ -53,16 +53,7 @@ async def mediainfo(client, message):
"""
title = "MissKaty Bot Mediainfo"
text_ = file_info.message_type
if CUSTOM_VIEW and GH_TOKEN is not None:
link = await getMediaWeb(title, body_text)
if not link:
try:
osremove(file_path)
except:
pass
return await message.reply("Failed to post mediainfo result.")
else:
link = post_to_telegraph(title, body_text)
ink = post_to_telegraph(title, body_text)
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text=text_, url=link)]])
try:
await message.reply(" <b>MEDIA INFO</b>", reply_markup=markup, quote=True)