File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 77
88from bot import Bot
99from config import CHANNEL_ID , ADMINS , START_MSG , OWNER_ID
10- from helper_func import subscribed , encode , decode
10+ from helper_func import subscribed , encode , decode , get_messages
1111
1212@Bot .on_message (filters .command ('start' ) & filters .private & subscribed )
1313async def start_command (client : Client , message : Message ):
@@ -41,14 +41,12 @@ async def start_command(client: Client, message: Message):
4141 except :
4242 return
4343 try :
44- msgs = await client .get_messages (
45- chat_id = CHANNEL_ID ,
46- message_ids = ids
47- )
44+ messages = await get_messages (client , ids )
4845 except :
4946 await message .reply_text ("Something went wrong..!" )
5047 return
51- for msg in msgs :
48+ print (len (messages ))
49+ for msg in messages :
5250 try :
5351 await msg .copy (chat_id = message .from_user .id , reply_markup = None )
5452 await asyncio .sleep (0.5 )
You can’t perform that action at this time.
0 commit comments