Skip to content

Commit 37d3c0a

Browse files
authored
Removed CHANNEL_ID variable
1 parent bf0b43f commit 37d3c0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

helper_func.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import base64
22
import asyncio
33
from pyrogram import filters
4-
from config import FORCE_SUB_CHANNEL, ADMINS, CHANNEL_ID
4+
from config import FORCE_SUB_CHANNEL, ADMINS
55
from pyrogram.errors.exceptions.bad_request_400 import UserNotParticipant
66
from 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:

0 commit comments

Comments
 (0)