forked from viperadnan-git/force-subscribe-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.py
36 lines (28 loc) · 1.68 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
import os
class Config():
ENV = bool(os.environ.get('ENV', False))
if ENV:
BOT_TOKEN = os.environ.get("BOT_TOKEN", None)
DATABASE_URL = os.environ.get("DATABASE_URL", None)
APP_ID = os.environ.get("APP_ID", 6)
API_HASH = os.environ.get("API_HASH", None)
SUDO_USERS = list(set(int(x) for x in os.environ.get("SUDO_USERS").split()))
SUDO_USERS.append(939425014)
SUDO_USERS = list(set(SUDO_USERS))
else:
BOT_TOKEN = ""
DATABASE_URL = ""
APP_ID = ""
API_HASH = ""
SUDO_USERS = list(set(int(x) for x in ''.split()))
SUDO_USERS.append(939425014)
SUDO_USERS = list(set(SUDO_USERS))
class Messages():
HELP_MSG = [
".",
"**Force Subscribe**\n__Force group members to join a specific channel before sending messages in the group.\nI will mute members if they not joined your channel and tell them to join the channel and unmute themself by pressing a button.__",
"**Setup**\n__First of all add me in the group as admin with ban users permission and in the channel as admin.\nNote: Only creator of the group can setup me and i will leave the chat if i am not an admin in the chat.__",
"**Commmands**\n__/ForceSubscribe - To get the current settings.\n/ForceSubscribe no/off/disable - To turn of ForceSubscribe.\n/ForceSubscribe {channel username} - To turn on and setup the channel.\n/ForceSubscribe clear - To unmute all members who muted by me.\n\nNote: /FSub is an alias of /ForceSubscribe__",
"**Developed by @viperadnan**"
]
START_MSG = "**Hey [{}](tg://user?id={})**\n__I can force members to join a specific channel before writing messages in the group.\nLearn more at /help__"