mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 11:04:51 +00:00
Add thumb for doc
This commit is contained in:
parent
e338d0dff8
commit
f9382b512a
8 changed files with 10 additions and 3 deletions
BIN
img/thumb.jpg
Normal file
BIN
img/thumb.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
|
|
@ -113,6 +113,8 @@ async def bypass(_, message):
|
||||||
reply_markup=markup,
|
reply_markup=markup,
|
||||||
disable_web_page_preview=True,
|
disable_web_page_preview=True,
|
||||||
)
|
)
|
||||||
else:
|
elif "we.tl" or "wetransfer.com" in url:
|
||||||
data = wetransfer_bypass(url)
|
data = wetransfer_bypass(url)
|
||||||
await msg.edit(f"{data}\n\n{mention}")
|
await msg.edit(f"{data}\n\n{mention}")
|
||||||
|
else:
|
||||||
|
await msg.edit("Unsupported URL..")
|
||||||
|
|
@ -139,6 +139,7 @@ async def evaluation_cmd_t(_, m):
|
||||||
document="MissKatyEval.txt",
|
document="MissKatyEval.txt",
|
||||||
caption=f"<code>{cmd[: 4096 // 4 - 1]}</code>",
|
caption=f"<code>{cmd[: 4096 // 4 - 1]}</code>",
|
||||||
disable_notification=True,
|
disable_notification=True,
|
||||||
|
thumb="img/thumb.jpg",
|
||||||
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{m.from_user.id}")]]),
|
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{m.from_user.id}")]]),
|
||||||
)
|
)
|
||||||
os.remove("MissKatyEval.txt")
|
os.remove("MissKatyEval.txt")
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ async def upload(bot, message):
|
||||||
await m.edit(output, reply_markup=btn)
|
await m.edit(output, reply_markup=btn)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await bot.send_message(message.chat.id, text=f"Something Went Wrong!\n\n{e}")
|
await bot.send_message(message.chat.id, text=f"Something Went Wrong!\n\n{e}")
|
||||||
os.remove(sed)
|
os.remove(fileku)
|
||||||
|
|
||||||
|
|
||||||
@app.on_message(filters.command(["download"], COMMAND_HANDLER) & filters.user(SUDO))
|
@app.on_message(filters.command(["download"], COMMAND_HANDLER) & filters.user(SUDO))
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ async def jsonify(_, message):
|
||||||
caption=f"<code>{str(e)}</code>",
|
caption=f"<code>{str(e)}</code>",
|
||||||
disable_notification=True,
|
disable_notification=True,
|
||||||
reply_to_message_id=reply_to_id,
|
reply_to_message_id=reply_to_id,
|
||||||
|
thumb="img/thumb.jpg",
|
||||||
reply_markup=InlineKeyboardMarkup(
|
reply_markup=InlineKeyboardMarkup(
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ async def mediainfo(client, message):
|
||||||
await message.reply_document(
|
await message.reply_document(
|
||||||
out_file,
|
out_file,
|
||||||
caption=f"Hasil mediainfo anda..\n\n**Request by:** {message.from_user.mention}",
|
caption=f"Hasil mediainfo anda..\n\n**Request by:** {message.from_user.mention}",
|
||||||
|
thumb="img/thumb.jpg",
|
||||||
reply_markup=markup,
|
reply_markup=markup,
|
||||||
)
|
)
|
||||||
await process.delete()
|
await process.delete()
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ __HELP__ = """
|
||||||
# Size Checker for Limit
|
# Size Checker for Limit
|
||||||
def humanbytes(size: int):
|
def humanbytes(size: int):
|
||||||
"""Convert Bytes To Bytes So That Human Can Read It"""
|
"""Convert Bytes To Bytes So That Human Can Read It"""
|
||||||
if not isinstance(command, int):
|
if not isinstance(size, int):
|
||||||
try:
|
try:
|
||||||
size = size
|
size = size
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,7 @@ async def convertsrt(c, m):
|
||||||
await m.reply_document(
|
await m.reply_document(
|
||||||
f"{filename}.srt",
|
f"{filename}.srt",
|
||||||
caption=f"<code>{filename}.srt</code>\n\nConverted by @{c.me.username}",
|
caption=f"<code>{filename}.srt</code>\n\nConverted by @{c.me.username}",
|
||||||
|
thumb="img/thumb.jpg",
|
||||||
progress=progress_for_pyrogram,
|
progress=progress_for_pyrogram,
|
||||||
progress_args=("Uploading files..", msg, c_time),
|
progress_args=("Uploading files..", msg, c_time),
|
||||||
)
|
)
|
||||||
|
|
@ -163,6 +164,7 @@ async def stream_extract(bot, update):
|
||||||
namafile,
|
namafile,
|
||||||
caption=f"<b>Filename:</b> <code>{namafile}</code>\n\nExtracted by @{bot.me.username} in {timelog}",
|
caption=f"<b>Filename:</b> <code>{namafile}</code>\n\nExtracted by @{bot.me.username} in {timelog}",
|
||||||
reply_to_message_id=usr.id,
|
reply_to_message_id=usr.id,
|
||||||
|
thumb="img/thumb.jpg",
|
||||||
progress=progress_for_pyrogram,
|
progress=progress_for_pyrogram,
|
||||||
progress_args=("Uploading files..", update.message, c_time),
|
progress_args=("Uploading files..", update.message, c_time),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue