File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55from pyrogram .errors import FloodWait
66
77from bot import Bot
8- from config import ADMINS
8+ from config import ADMINS , CHANNEL_ID
99from 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 ))
3131async def new_post (client : Client , message : Message ):
3232 converted_id = message .message_id * abs (client .db_channel .id )
3333 string = f"get-{ converted_id } "
You can’t perform that action at this time.
0 commit comments