-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
31 lines (21 loc) · 701 Bytes
/
config.py
File metadata and controls
31 lines (21 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from os import getenv
from dotenv import load_dotenv
load_dotenv()
# Get it from my.telegram.org
API_ID = int(getenv("API_ID"))
API_HASH = getenv("API_HASH")
## Get it from @Botfather in Telegram.
BOT_TOKEN = getenv("BOT_TOKEN")
# SUDO USERS
SUDO_USER = list(
map(int, getenv("SUDO_USER", "").split())
) # Input type must be interger
# You'll need a Private Group ID for this.
LOG_GROUP_ID = int(getenv("LOG_GROUP_ID"))
# Message to display when someone starts your bot
PRIVATE_START_MESSAGE = getenv(
"PRIVATE_START_MESSAGE",
"Hello! Welcome to my Personal Assistant Bot",
)
# Database to save your chats and stats... Get MongoDB:-
MONGO_DB_URI = getenv("MONGO_DB_URI", None)