forked from GreyMatters-Tech/public-forward-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
18 lines (16 loc) · 807 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import logging
class Config:
API_ID = int(os.environ.get("API_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
BOT_SESSION = os.environ.get("BOT_SESSION", "forwardbot")
OWNER_ID = os.environ.get("OWNER_ID", "")
DATABASE_URI = os.environ.get("DATABASE_URI", "")
DATABASE_NAME = os.environ.get("DATABASE_NAME", "Cluste0")
COLLECTION_NAME = os.environ.get('COLLECTION_NAME', 'Data')
SESSION = os.environ.get("SESSION", "")
TO_CHANNEL = int(os.environ.get("TO_CHANNEL", ""))
BOT_USERNAME= os.environ.get("BOT_USERNAME", "")
def LOGGER(name: str) -> logging.Logger:
return logging.getLogger(name)