Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update all #296

Closed
wants to merge 16 commits into from
2 changes: 1 addition & 1 deletion plugins/cbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async def cb_handler(client: Bot, query: CallbackQuery):
data = query.data
if data == "about":
await query.message.edit_text(
text = f"<b>○ Creator : <a href='tg://user?id={OWNER_ID}'>This Person</a>\n○ Language : <code>Python3</code>\n○ Library : <a href='https://docs.pyrogram.org/'>Pyrogram asyncio {__version__}</a>\n○ Source Code : <a href='https://github.com/CodeXBotz/File-Sharing-Bot'>Click here</a>\n○ Channel : @CodeXBotz\n○ Support Group : @CodeXBotzSupport</b>",
text = f"<b>○ Pemilik Chanel : <a href='tg://user?id={OWNER_ID}'>pentil kuda</a>\n○ Language : <code>Python3</code>\n○ Channel : <a href='https://t.me/Jhonny_perkasa'>@Jhonny_perkasa</a>\n○ BANTU SUPPORT <a href='https://t.me/Jhonny_perkasa'>@Jhonny_perkasa</a>BIAR BACOL MAKIN BANYAK</b></b>",
disable_web_page_preview = True,
reply_markup = InlineKeyboardMarkup(
[
Expand Down
4 changes: 2 additions & 2 deletions plugins/channel_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def channel_post(client: Client, message: Message):
base64_string = await encode(string)
link = f"https://t.me/{client.username}?start={base64_string}"

reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'{link}')]])

await reply_text.edit(f"<b>Here is your link</b>\n\n{link}", reply_markup=reply_markup, disable_web_page_preview = True)

Expand All @@ -43,7 +43,7 @@ async def new_post(client: Client, message: Message):
string = f"get-{converted_id}"
base64_string = await encode(string)
link = f"https://t.me/{client.username}?start={base64_string}"
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'{link}')]])
try:
await message.edit_reply_markup(reply_markup)
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions plugins/link_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def batch(client: Client, message: Message):
string = f"get-{f_msg_id * abs(client.db_channel.id)}-{s_msg_id * abs(client.db_channel.id)}"
base64_string = await encode(string)
link = f"https://t.me/{client.username}?start={base64_string}"
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'{link}')]])
await second_message.reply_text(f"<b>Here is your link</b>\n\n{link}", quote=True, reply_markup=reply_markup)


Expand All @@ -56,5 +56,5 @@ async def link_generator(client: Client, message: Message):

base64_string = await encode(f"get-{msg_id * abs(client.db_channel.id)}")
link = f"https://t.me/{client.username}?start={base64_string}"
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'{link}')]])
await channel_message.reply_text(f"<b>Here is your link</b>\n\n{link}", quote=True, reply_markup=reply_markup)