mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 18:44: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,
|
||||
disable_web_page_preview=True,
|
||||
)
|
||||
else:
|
||||
elif "we.tl" or "wetransfer.com" in url:
|
||||
data = wetransfer_bypass(url)
|
||||
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",
|
||||
caption=f"<code>{cmd[: 4096 // 4 - 1]}</code>",
|
||||
disable_notification=True,
|
||||
thumb="img/thumb.jpg",
|
||||
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(text="❌ Close", callback_data=f"close#{m.from_user.id}")]]),
|
||||
)
|
||||
os.remove("MissKatyEval.txt")
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ async def upload(bot, message):
|
|||
await m.edit(output, reply_markup=btn)
|
||||
except Exception as 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))
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ async def jsonify(_, message):
|
|||
caption=f"<code>{str(e)}</code>",
|
||||
disable_notification=True,
|
||||
reply_to_message_id=reply_to_id,
|
||||
thumb="img/thumb.jpg",
|
||||
reply_markup=InlineKeyboardMarkup(
|
||||
[
|
||||
[
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ async def mediainfo(client, message):
|
|||
await message.reply_document(
|
||||
out_file,
|
||||
caption=f"Hasil mediainfo anda..\n\n**Request by:** {message.from_user.mention}",
|
||||
thumb="img/thumb.jpg",
|
||||
reply_markup=markup,
|
||||
)
|
||||
await process.delete()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ __HELP__ = """
|
|||
# Size Checker for Limit
|
||||
def humanbytes(size: int):
|
||||
"""Convert Bytes To Bytes So That Human Can Read It"""
|
||||
if not isinstance(command, int):
|
||||
if not isinstance(size, int):
|
||||
try:
|
||||
size = size
|
||||
except ValueError:
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ async def convertsrt(c, m):
|
|||
await m.reply_document(
|
||||
f"{filename}.srt",
|
||||
caption=f"<code>{filename}.srt</code>\n\nConverted by @{c.me.username}",
|
||||
thumb="img/thumb.jpg",
|
||||
progress=progress_for_pyrogram,
|
||||
progress_args=("Uploading files..", msg, c_time),
|
||||
)
|
||||
|
|
@ -163,6 +164,7 @@ async def stream_extract(bot, update):
|
|||
namafile,
|
||||
caption=f"<b>Filename:</b> <code>{namafile}</code>\n\nExtracted by @{bot.me.username} in {timelog}",
|
||||
reply_to_message_id=usr.id,
|
||||
thumb="img/thumb.jpg",
|
||||
progress=progress_for_pyrogram,
|
||||
progress_args=("Uploading files..", update.message, c_time),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue