We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0225fd commit b34c1a8Copy full SHA for b34c1a8
plugins/channel_post.py
@@ -28,7 +28,7 @@ async def channel_post(client: Client, message: Message):
28
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)
30
31
-@Bot.on_message(filters.channel & filters.incoming & filters.chat(CHANNEL_ID))
+@Bot.on_message(filters.channel & filters.incoming & filters.chat(CHANNEL_ID) & ~filters.edited)
32
async def new_post(client: Client, message: Message):
33
converted_id = message.message_id * abs(client.db_channel.id)
34
string = f"get-{converted_id}"
0 commit comments