Skip to content

Commit bdbb9e1

Browse files
authored
Update channel_post.py
1 parent 37d3c0a commit bdbb9e1

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
@@ -5,7 +5,7 @@
55
from pyrogram.errors import FloodWait
66

77
from bot import Bot
8-
from config import ADMINS
8+
from config import ADMINS, CHANNEL_ID
99
from helper_func import encode
1010

1111
@Bot.on_message(filters.private & filters.user(ADMINS) & ~filters.command(['start','batch','genlink']))
@@ -27,7 +27,7 @@ async def channel_post(client: Client, message: Message):
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)
2929

30-
@Bot.on_message(filters.channel & filters.incoming & filters.chat(client.db_channel.id))
30+
@Bot.on_message(filters.channel & filters.incoming & filters.chat(CHANNEL_ID))
3131
async def new_post(client: Client, message: Message):
3232
converted_id = message.message_id * abs(client.db_channel.id)
3333
string = f"get-{converted_id}"

0 commit comments

Comments
 (0)