mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 04:14:51 +00:00
Fix pastebin
This commit is contained in:
parent
8a2bee8e91
commit
206db5c01b
1 changed files with 4 additions and 5 deletions
|
|
@ -58,10 +58,9 @@ async def mediainfo(client, message):
|
||||||
}
|
}
|
||||||
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
||||||
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
||||||
|
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text_, link)]])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOGGER.error(e)
|
markup = None
|
||||||
link = None
|
|
||||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text_, link)]])
|
|
||||||
await kirimPesan(message, "ℹ️ <b>MEDIA INFO</b>", reply_markup=markup, quote=True)
|
await kirimPesan(message, "ℹ️ <b>MEDIA INFO</b>", reply_markup=markup, quote=True)
|
||||||
await process.delete()
|
await process.delete()
|
||||||
try:
|
try:
|
||||||
|
|
@ -91,9 +90,9 @@ async def mediainfo(client, message):
|
||||||
}
|
}
|
||||||
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
||||||
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
||||||
|
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text="💬 View in Web", url=link)]])
|
||||||
except:
|
except:
|
||||||
link = None
|
markup = None
|
||||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text="💬 View in Web", url=link)]])
|
|
||||||
with io.BytesIO(str.encode(output)) as out_file:
|
with io.BytesIO(str.encode(output)) as out_file:
|
||||||
out_file.name = "MissKaty_Mediainfo.txt"
|
out_file.name = "MissKaty_Mediainfo.txt"
|
||||||
await message.reply_document(
|
await message.reply_document(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue