Mediainfo: Add title

Co-authored-by: Juan <jusidama18@users.noreply.github.com>
Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
Hafitz Setya 2021-07-22 20:35:56 +07:00 committed by GitHub
parent 59e23c722a
commit a56daf32cd
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,8 @@ async def mediainfo(client, message):
<h2>DETAILS</h2>
<pre>{out or 'Not Supported'}</pre>
"""
title = f"Slam Mirror Bot Mediainfo"
text_ = media_type.split(".")[-1].upper()
link = post_to_telegraph(media_type, body_text)
link = post_to_telegraph(title, body_text)
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text=text_, url=link)]])
await process.edit_text("ℹ️ <b>MEDIA INFO</b>", reply_markup=markup)