-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathconfig.py
116 lines (74 loc) · 3.33 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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import os, time, re
id_pattern = re.compile(r'^.\d+$')
class Config(object):
# pyro client config
API_ID = os.environ.get("API_ID", "")
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
# database config
DB_NAME = os.environ.get("DB_NAME","")
DB_URL = os.environ.get("DB_URL","")
# other configs
BOT_UPTIME = time.time()
START_PIC = os.environ.get("START_PIC", "")
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get('ADMIN', '').split()]
# channels logs
FORCE_SUB = os.environ.get("FORCE_SUB", "")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", ""))
# wes response configuration
WEBHOOK = bool(os.environ.get("WEBHOOK", True))
class Txt(object):
# part of text configuration
START_TXT = """Hello {} 👋
➻ This Is An Advanced And Yet Powerful Rename Bot.
➻ Using This Bot You Can Rename And Change Thumbnail Of Your Files.
➻ You Can Also Convert Video To File And File To Video.
➻ This Bot Also Supports Custom Thumbnail And Custom Caption.
<b>Bot Is Made By :</b> @Madflix_Bots"""
ABOUT_TXT = """
╭───────────────⍟
├<b>🤖 My Name</b> : {}
├<b>🖥️ Developer</b> : <a href=https://t.me/Madflix_Bots>Madflix Botz</a>
├<b>👨💻 Programer</b> : <a href=https://t.me/MadflixOfficials>Jishu Developer</a>
├<b>📕 Library</b> : <a href=https://github.com/pyrogram>Pyrogram</a>
├<b>✏️ Language</b> : <a href=https://www.python.org>Python 3</a>
├<b>💾 Database</b> : <a href=https://cloud.mongodb.com>Mongo DB</a>
├<b>📊 Build Version</b> : <a href=https://instagram.com/jishu.editz>Rename v4.5.0</a></b>
╰───────────────⍟
"""
HELP_TXT = """
🌌 <b><u>How To Set Thumbnail</u></b>
➪ /start - Start The Bot And Send Any Photo To Automatically Set Thumbnail.
➪ /del_thumb - Use This Command To Delete Your Old Thumbnail.
➪ /view_thumb - Use This Command To View Your Current Thumbnail.
📑 <b><u>How To Set Custom Caption</u></b>
➪ /set_caption - Use This Command To Set A Custom Caption
➪ /see_caption - Use This Command To View Your Custom Caption
➪ /del_caption - Use This Command To Delete Your Custom Caption
➪ Example - <code>/set_caption 📕 Name ➠ : {filename}
🔗 Size ➠ : {filesize}
⏰ Duration ➠ : {duration}</code>
✏️ <b><u>How To Rename A File</u></b>
➪ Send Any File And Type New File Name And Select The Format [ Document, Video, Audio ].
𝗔𝗻𝘆 𝗢𝘁𝗵𝗲𝗿 𝗛𝗲𝗹𝗽 𝗖𝗼𝗻𝘁𝗮𝗰𝘁 :- <a href=https://t.me/MadflixOfficials>Developer</a>
"""
PROGRESS_BAR = """\n
<b>🔗 Size :</b> {1} | {2}
️ <b>⏳️ Done :</b> {0}%
<b>🚀 Speed :</b> {3}/s
️ <b>⏰️ ETA :</b> {4}
"""
DONATE_TXT = """
<b>🥲 Thanks For Showing Interest In Donation! ❤️</b>
If You Like My Bots & Projects, You Can 🎁 Donate Me Any Amount From 10 Rs Upto Your Choice.
<b>🛍 UPI ID:</b> `madflixofficial@axl`
"""
SEND_METADATA = """<b><u>🖼️ HOW TO SET CUSTOM METADATA</u></b>
For Example :-
<code>By :- @Madflix_Bots</code>
💬 For Any Help Contact @MadflixOfficials
"""
# Jishu Developer
# Don't Remove Credit 🥺
# Telegram Channel @JishuBotz
# Developer @JishuDeveloper