Skip to content

Commit eac416f

Browse files
committed
More Better Now
1 parent 45f4f0c commit eac416f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

bot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async def start(bot, cmd):
113113
try:
114114
file_id = int(usr_cmd)
115115
send_stored_file = await bot.copy_message(chat_id=cmd.from_user.id, from_chat_id=DB_CHANNEL, message_id=file_id)
116-
await send_stored_file.reply_text(f"**Here is Sharable Link of this file:** https://telegram.dog/{BOT_USERNAME}?start=AbirHasan2005_{file_id}\n\nTo Retrive the Stored File, just open the link!")
116+
await send_stored_file.reply_text(f"**Here is Sharable Link of this file:** https://telegram.dog/{BOT_USERNAME}?start=AbirHasan2005_{file_id}\n\n__To Retrive the Stored File, just open the link!__", disable_web_page_preview=True, quote=True)
117117
except Exception as err:
118118
await cmd.reply_text(f"Something went wrong!\n\n**Error:** `{err}`")
119119

@@ -124,14 +124,15 @@ async def main(bot, message):
124124
try:
125125
forwarded_msg = await message.forward(DB_CHANNEL)
126126
file_er_id = forwarded_msg.message_id
127-
await forwarded_msg.reply_text(f"#PRIVATE_FILE:\n\n[{message.from_user.first_name}](tg://user?id={message.from_user.id}) Got File Link!", parse_mode="Markdown")
127+
await forwarded_msg.reply_text(f"#PRIVATE_FILE:\n\n[{message.from_user.first_name}](tg://user?id={message.from_user.id}) Got File Link!", parse_mode="Markdown", disable_web_page_preview=True)
128128
share_link = f"https://telegram.dog/{BOT_USERNAME}?start=AbirHasan2005_{file_er_id}"
129129
await editable.edit(
130130
f"**Your File Stored in my Database!**\n\nHere is the Permanent Link of your file: {share_link} \n\nJust Click the link to get your file!",
131131
parse_mode="Markdown",
132132
reply_markup=InlineKeyboardMarkup(
133133
[[InlineKeyboardButton("Open Link", url=share_link)], [InlineKeyboardButton("Bots Channel", url="https://t.me/Discovery_Updates"), InlineKeyboardButton("Support Group", url="https://t.me/linux_repo")]]
134-
)
134+
),
135+
disable_web_page_preview=True
135136
)
136137
except Exception as err:
137138
await editable.edit(f"Something Went Wrong!\n\n**Error:** `{err}`")

0 commit comments

Comments
 (0)