-
Notifications
You must be signed in to change notification settings - Fork 292
/
Copy pathconfigs.py
43 lines (38 loc) · 1.95 KB
/
configs.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
# (c) @AbirHasan2005
import os
import heroku3
class Config(object):
# Get This From @TeleORG_Bot
API_ID = int(os.environ.get("API_ID"))
API_HASH = os.environ.get("API_HASH")
# Get This From @StringSessionGen_Bot
STRING_SESSION = os.environ.get("STRING_SESSION")
# Forward From Chat ID
FORWARD_FROM_CHAT_ID = list(set(int(x) for x in os.environ.get("FORWARD_FROM_CHAT_ID", "-100").split()))
# Forward To Chat ID
FORWARD_TO_CHAT_ID = list(set(int(x) for x in os.environ.get("FORWARD_TO_CHAT_ID", "-100").split()))
# Filters for Forwards
DEFAULT_FILTERS = "video document photo audio text gif forwarded poll sticker"
FORWARD_FILTERS = list(set(x for x in os.environ.get("FORWARD_FILTERS", DEFAULT_FILTERS).split()))
BLOCKED_EXTENSIONS = list(set(x for x in os.environ.get("BLOCKED_EXTENSIONS", "").split()))
MINIMUM_FILE_SIZE = os.environ.get("MINIMUM_FILE_SIZE", None)
BLOCK_FILES_WITHOUT_EXTENSIONS = bool(os.environ.get("BLOCK_FILES_WITHOUT_EXTENSIONS", False))
# Forward as Copy. Value Should be True or False
FORWARD_AS_COPY = bool(os.environ.get("FORWARD_AS_COPY", True))
# Sleep Time while Kang
SLEEP_TIME = int(os.environ.get("SLEEP_TIME", 10))
# Heroku Management
HEROKU_API_KEY = os.environ.get("HEROKU_API_KEY")
HEROKU_APP_NAME = os.environ.get("HEROKU_APP_NAME")
HEROKU_APP = heroku3.from_key(HEROKU_API_KEY).apps()[HEROKU_APP_NAME] if HEROKU_API_KEY and HEROKU_APP_NAME else None
# Message Texts
HELP_TEXT = """
This UserBot can forward messages from any Chat to any other Chat also you can kang all messages from one Chat to another Chat.
👨🏻💻 **Commands:**
• `!start` - Check UserBot Alive or Not.
• `!help` - Get this Message.
• `!kang` - Start All Messages Kanger.
• `!restart` - Restart Heroku App Dyno Workers.
• `!stop` - Stop Kanger & Restart Service.
©️ **Developer:** @AbirHasan2005
👥 **Support Group:** [【★ʟя★】](https://t.me/JoinOT)"""