Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOrv authored Aug 18, 2024
1 parent d42a224 commit 7a84b18
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# config.py

import os
from dotenv import load_dotenv

Expand All @@ -6,11 +8,13 @@
api_id = os.getenv('API_ID')
api_hash = os.getenv('API_HASH')
bot_token = os.getenv('BOT_TOKEN')
channel_id = os.getenv('CHANNEL_ID') #orv_proxy
#str
channel_id = os.getenv('CHANNEL_ID')

proxy_channel_url = os.getenv('PROXY_CHANNEL_URL') #https://t.me...
config_channel_url = os.getenv('CONFIG_CHANNEL_URL') #https://t.me...
bot_url = os.getenv('BOT_URL') #https://t.me...
support_url = os.getenv('SUPPORT_URL') #https://t.me...
proxy_channel_url = os.getenv('PROXY_CHANNEL_URL')
config_channel_url = os.getenv('CONFIG_CHANNEL_URL')
bot_url = os.getenv('BOT_URL')
support_url = os.getenv('SUPPORT_URL')

channels = os.getenv('CHANNELS').split(',') #12342342 234124 12341234 1524213 12341234
# Load channels as a list of integers
channels = [int(chat_id.strip()) for chat_id in os.getenv('CHANNELS').split(',')]

0 comments on commit 7a84b18

Please sign in to comment.