forked from AbirHasan2005/PyroFilesStoreBot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigs.py
More file actions
63 lines (43 loc) Β· 2.24 KB
/
configs.py
File metadata and controls
63 lines (43 loc) Β· 2.24 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# (c) @MRK_YT
import os
class Config(object):
API_ID = int(os.environ.get("API_ID"))
API_HASH = os.environ.get("API_HASH")
BOT_TOKEN = os.environ.get("MT_BOT_TOKEN")
BOT_USERNAME = os.environ.get("MT_BOT_USERNAME")
DB_CHANNEL = int(os.environ.get("DB_CHANNEL"))
BOT_OWNER = int(os.environ.get("MT_BOT_OWNER"))
DATABASE_URL = os.environ.get("DATABASE_URL")
UPDATES_CHANNEL = os.environ.get("MT_UPDATES_CHANNEL", None)
LOG_CHANNEL = int(os.environ.get("MT_LOG_CHANNEL"))
BANNED_USERS = set(int(x) for x in os.environ.get("BANNED_USERS", "1234567890").split())
FORWARD_AS_COPY = bool(os.environ.get("MO_TECH_YT", True))
BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", False))
BANNED_CHAT_IDS = list(set(int(x) for x in os.environ.get("BANNED_CHAT_IDS", "-1001362659779 -1001255795497").split()))
OTHER_USERS_CAN_SAVE_FILE = bool(os.environ.get("OTHER_USERS_CAN_SAVE_FILE", True))
ABOUT_BOT_TEXT = f"""
This is Permanent Files Store Bot!
Send me any file I will save it in my Database. Also works for channel. Add me to channel as Admin with Edit Permission, I will add Save Uploaded File in Channel & add Sharable Button Link.
π€ **My Name:** [Files Store Bot](https://t.me/{BOT_USERNAME})
π **Language:** [Python3](https://www.python.org)
π **Library:** [Pyrogram](https://docs.pyrogram.org)
π‘ **Hosted on:** [Heroku](https://heroku.com)
π§π»β **Developer:** @gpl_kavin
π¨βπ» **Editing:** @gpl_kavin
πΊ **Support:** [My YouTube Channel](https://www.youtube.com/channel/UCMdjyyOY-aa5SaV1iKK_ofQ)
π£οΈ **Any Doubt:** @kingmasterchat
π’ **Updates Channel:** [Ithunammacinema](https://t.me/ithunammacinema)
"""
ABOUT_DEV_TEXT = f"""
π§π»β **Developer:** @gpl_kavin
π» **Developer Details:** [Clcik Here](https://t.me/aboutgpl)
π¨βπ» **Editing:** @gpl_kavin
π£οΈ **Any Doubt:** @kingmasterchat
πΊ **Support :** [My YouTube Channel](https://www.youtube.com/channel/UCMdjyyOY-aa5SaV1iKK_ofQ)
π’ **Updates Channel:** [Ithunammacinema](https://t.me/ithunammacinema)
Donate Now (@gpl_kavin)
"""
HOME_TEXT = """
**πHi**, [{}](tg://user?id={})\n\n**This is Permanent** **MT FileStoreBot**.
**Send me any file I will give you a permanent Sharable Link. I Support Channel Also! Check About Bot Button**.
"""