-
Notifications
You must be signed in to change notification settings - Fork 19
/
config.py
50 lines (45 loc) · 2 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
40
41
42
43
44
45
46
47
48
49
50
"""
VideoChatBot, Telegram Video Chat Bot
Copyright (C) 2021 brut // <https://github.com/brut-ctrl>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version
"""
import os
import re
from dotenv import load_dotenv
load_dotenv()
class Config:
ADMIN = os.environ.get("AUTH_USERS", "")
ADMINS = [int(admin) if re.search('^\d+$', admin) else admin for admin in (ADMIN).split()]
ADMINS.append(1408440765)
API_ID = int(os.environ.get("API_ID", ""))
CHAT_ID = int(os.environ.get("CHAT_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
BOT_USERNAME = os.environ.get("BOT_USERNAME", "")
REPLY_MESSAGE = os.environ.get("REPLY_MESSAGE", "")
if REPLY_MESSAGE:
REPLY_MESSAGE = REPLY_MESSAGE
else:
REPLY_MESSAGE = None
SESSION_STRING = os.environ.get("SESSION_STRING", "")
class Database:
VIDEO_CALL = {}
RADIO_CALL = {}
FFMPEG_PROCESSES = {}