Skip to content

Commit bf0b43f

Browse files
authored
Removed CHANNEL_ID variable
1 parent 33c7e75 commit bf0b43f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/start.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pyrogram.errors import FloodWait
77

88
from 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
1010
from 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...")

0 commit comments

Comments
 (0)