-
Notifications
You must be signed in to change notification settings - Fork 166
/
config.py
39 lines (30 loc) · 1.17 KB
/
config.py
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
32
33
34
35
36
37
38
39
#
# Copyright (C) 2021-2022 by TeamYukki@Github, < https://github.com/YukkiChatBot >.
#
# This file is part of < https://github.com/TeamYukki/YukkiChatBot > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/TeamYukki/YukkiChatBot/blob/master/LICENSE >
#
# All rights reserved.
#
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:- https://notreallyshikhar.gitbook.io/yukkimusicbot/deployment/mongodb#4.-youll-see-a-deploy-cloud-database-option.-please-select-shared-hosting-under-free-plan-here
MONGO_DB_URI = getenv("MONGO_DB_URI", None)