File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import base64
22import asyncio
33from pyrogram import filters
4- from config import FORCE_SUB_CHANNEL , ADMINS , CHANNEL_ID
4+ from config import FORCE_SUB_CHANNEL , ADMINS
55from pyrogram .errors .exceptions .bad_request_400 import UserNotParticipant
66from pyrogram .errors import FloodWait
77
@@ -40,13 +40,13 @@ async def get_messages(client, message_ids):
4040 temb_ids = message_ids [total_messages :total_messages + 200 ]
4141 try :
4242 msgs = await client .get_messages (
43- chat_id = CHANNEL_ID ,
43+ chat_id = client . db_channel . id ,
4444 message_ids = temb_ids
4545 )
4646 except FloodWait as e :
4747 await asyncio .sleep (e .x )
4848 msgs = await client .get_messages (
49- chat_id = CHANNEL_ID ,
49+ chat_id = client . db_channel . id ,
5050 message_ids = temb_ids
5151 )
5252 except :
You can’t perform that action at this time.
0 commit comments