forked from Jijinr/Frwdit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
23 lines (20 loc) · 782 Bytes
/
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) Dark Angel
import os
import logging
class Config:
API_ID = int(os.environ.get("API_ID", 12345))
API_HASH = os.environ.get("API_HASH")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
BOT_SESSION = os.environ.get("BOT_SESSION", "bot")
CAPTION = os.environ.get("CAPTION", "")
FROM_CHANNEL = os.environ.get("FROM_CHANNEL", None)
FILTER_TYPE = os.environ.get("FILTER_TYPE", "")
OWNER_ID = os.environ.get("OWNER_ID", 12345)
LIMIT = int(os.environ.get("LIMIT", "25000"))
SKIP_NO = int(os.environ.get("SKIP_NO", "0"))
SESSION = os.environ.get("SESSION")
TO_CHANNEL = int(os.environ.get("TO_CHANNEL", 12345))
def LOGGER(name: str) -> logging.Logger:
return logging.getLogger(name)