This commit is contained in:
yasir 2023-02-13 22:51:00 +07:00
parent 376755e7b3
commit 8a2bee8e91
2 changed files with 3 additions and 2 deletions

View file

@ -58,7 +58,8 @@ async def mediainfo(client, message):
}
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
except:
except Exception as e:
LOGGER.error(e)
link = None
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text_, link)]])
await kirimPesan(message, " <b>MEDIA INFO</b>", reply_markup=markup, quote=True)

View file

@ -165,7 +165,7 @@ async def wastepaste(_, message):
pass
return await editPesan(msg, "`File Not Supported !`")
elif reply and (reply.text or reply.caption):
data = reply.text.html or reply.caption.html
data = reply.text or reply.caption
elif not reply and len(message.command) >= 2:
data = message.text.split(None, 1)[1]