Skip to content

Commit e0225fd

Browse files
authored
Added button when Post through Bot
1 parent 97737e1 commit e0225fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/channel_post.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ async def channel_post(client: Client, message: Message):
2626
link = f"https://t.me/{client.username}?start={base64_string}"
2727
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("🔁 Share URL", url=f'https://telegram.me/share/url?url={link}')]])
2828
await reply_text.edit(f"<b>Here is your link</b>\n\n{link}", reply_markup=reply_markup, disable_web_page_preview = True)
29+
await post_message.edit_reply_markup(reply_markup)
2930

3031
@Bot.on_message(filters.channel & filters.incoming & filters.chat(CHANNEL_ID))
3132
async def new_post(client: Client, message: Message):

0 commit comments

Comments
 (0)