File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 66from pyrogram .errors import FloodWait
77
88from bot import Bot
9- from config import CHANNEL_ID , ADMINS , START_MSG , OWNER_ID
9+ from config import client . db_channel . id , ADMINS , START_MSG , OWNER_ID
1010from helper_func import subscribed , encode , decode , get_messages
1111
1212@Bot .on_message (filters .command ('start' ) & filters .private & subscribed )
@@ -21,8 +21,8 @@ async def start_command(client: Client, message: Message):
2121 argument = string .split ("-" )
2222 if len (argument ) == 3 :
2323 try :
24- start = int (int (argument [1 ]) / abs (CHANNEL_ID ))
25- end = int (int (argument [2 ]) / abs (CHANNEL_ID ))
24+ start = int (int (argument [1 ]) / abs (client . db_channel . id ))
25+ end = int (int (argument [2 ]) / abs (client . db_channel . id ))
2626 except :
2727 return
2828 if start <= end :
@@ -37,7 +37,7 @@ async def start_command(client: Client, message: Message):
3737 break
3838 elif len (argument ) == 2 :
3939 try :
40- ids = [int (int (argument [1 ]) / abs (CHANNEL_ID ))]
40+ ids = [int (int (argument [1 ]) / abs (client . db_channel . id ))]
4141 except :
4242 return
4343 temp_msg = await message .reply ("Please wait..." )
You can’t perform that action at this time.
0 commit comments