Skip to content

Commit af3e52b

Browse files
authored
Update channel_post.py
1 parent f1016c5 commit af3e52b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/channel_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async def channel_post(client: Client, message: Message):
2424
converted_id = post_message.id * abs(client.db_channel.id)
2525
string = f"get-{converted_id}"
2626
base64_string = await encode(string)
27-
link = f"https://t.me/{client.username}?start={base64_string}"
27+
link = f"https://telegram.me/{client.username}?start={base64_string}"
2828

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

@@ -42,7 +42,7 @@ async def new_post(client: Client, message: Message):
4242
converted_id = message.id * abs(client.db_channel.id)
4343
string = f"get-{converted_id}"
4444
base64_string = await encode(string)
45-
link = f"https://t.me/{client.username}?start={base64_string}"
45+
link = f"https://telegram.me/{client.username}?start={base64_string}"
4646
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
4747
try:
4848
await message.edit_reply_markup(reply_markup)

0 commit comments

Comments
 (0)