-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvariables.py
More file actions
50 lines (22 loc) · 1023 Bytes
/
variables.py
File metadata and controls
50 lines (22 loc) · 1023 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
32
33
34
35
36
37
38
import re
import os
from os import environ
id_pattern = re.compile(r'^.\d+$')
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
API_ID = int(os.environ.get("API_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
PICS = os.environ.get("PICS", "https://graph.org/file/25278972e623010165500.jpg").split()
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in environ.get('ADMINS', '900873119').split()]
DB_URL = os.environ.get("DB_URL", "")
DB_NAME = os.environ.get("DB_NAME", "tg-multi-bot")
RemoveBG_API = os.environ.get("RemoveBG_API", "")
FORCE_SUB = os.environ.get("FORCE_SUB", None)
HEROKU_API_KEY = os.environ.get("HEROKU_API_KEY", "")
log_channel = environ.get("LOG_CHANNEL")
LOG_CHANNEL = int(log_channel) if log_channel and id_pattern.search(log_channel) else None
LOG_TEXT = """<i><u>👁️🗨️USER DETAILS</u>
○ ID : <code>{id}</code>
○ DC : <code>{dc_id}</code>
○ First Name : <code>{first_name}<code>
○ UserName : @{username}
By = {bot}</i>"""