forked from odysseusmax/utube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
23 lines (11 loc) · 1.05 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import os
class Config:
BOT_TOKEN = os.environ["BOT_TOKEN"] # Get From https://t.me/BotFather
API_ID = int(os.environ["API_ID"]) # Get from https://my.telegram.org/apps
API_HASH = os.environ["API_HASH"] # Get from https://my.telegram.org/apps
CLIENT_ID = os.environ["CLIENT_ID"] # Get from https://console.developers.google.com/apis/credentials
CLIENT_SECRET = os.environ["CLIENT_SECRET"] # Get from https://console.developers.google.com/apis/credentials
BOT_OWNER = int(os.environ["BOT_OWNER"]) # Bot owner's telegram id
AUTH_USERS = [BOT_OWNER,374321319]+[int(user) for user in os.environ["AUTH_USERS"].split(",") if os.environ["AUTH_USERS"]]
# Id of other users who want to use your bot
CRED_FILE = "auth_token.txt" # Credentials file