Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
6244d2b
1
Parent(s):
f72d3ee
Update start.py
Browse files- Powers/plugins/start.py +5 -3
Powers/plugins/start.py
CHANGED
@@ -68,6 +68,7 @@ async def close_admin_callback(_, q: CallbackQuery):
|
|
68 |
command("start") & (filters.group | filters.private),
|
69 |
)
|
70 |
async def start(c: Gojo, m: Message):
|
|
|
71 |
chat_type = await chattype(m)
|
72 |
if chat_type == "private":
|
73 |
if len(m.text.split()) > 1:
|
@@ -88,7 +89,7 @@ async def start(c: Gojo, m: Message):
|
|
88 |
if not help_msg:
|
89 |
return
|
90 |
|
91 |
-
|
92 |
|
93 |
await m.reply_photo(
|
94 |
photo=StartPic,
|
@@ -181,6 +182,7 @@ async def commands_menu(_, q: CallbackQuery):
|
|
181 |
|
182 |
@Gojo.on_message(command("help"))
|
183 |
async def help_menu(_, m: Message):
|
|
|
184 |
if len(m.text.split()) >= 2:
|
185 |
help_option = (m.text.split(None, 1)[1]).lower()
|
186 |
help_msg, help_kb = await get_help_msg(m, help_option)
|
@@ -194,7 +196,7 @@ async def help_menu(_, m: Message):
|
|
194 |
)
|
195 |
chat_type = await chattype(m)
|
196 |
if chat_type == "private":
|
197 |
-
|
198 |
await m.reply_photo(
|
199 |
photo=StartPic,
|
200 |
caption=help_msg,
|
@@ -204,7 +206,7 @@ async def help_menu(_, m: Message):
|
|
204 |
|
205 |
)
|
206 |
else:
|
207 |
-
|
208 |
await m.reply_photo(
|
209 |
photo=StartPic,
|
210 |
caption=f"Press the button below to get help for <i>{help_option}</i>",
|
|
|
68 |
command("start") & (filters.group | filters.private),
|
69 |
)
|
70 |
async def start(c: Gojo, m: Message):
|
71 |
+
StartPic = choice(StartPic)
|
72 |
chat_type = await chattype(m)
|
73 |
if chat_type == "private":
|
74 |
if len(m.text.split()) > 1:
|
|
|
89 |
if not help_msg:
|
90 |
return
|
91 |
|
92 |
+
|
93 |
|
94 |
await m.reply_photo(
|
95 |
photo=StartPic,
|
|
|
182 |
|
183 |
@Gojo.on_message(command("help"))
|
184 |
async def help_menu(_, m: Message):
|
185 |
+
StartPic = choice(StartPic)
|
186 |
if len(m.text.split()) >= 2:
|
187 |
help_option = (m.text.split(None, 1)[1]).lower()
|
188 |
help_msg, help_kb = await get_help_msg(m, help_option)
|
|
|
196 |
)
|
197 |
chat_type = await chattype(m)
|
198 |
if chat_type == "private":
|
199 |
+
|
200 |
await m.reply_photo(
|
201 |
photo=StartPic,
|
202 |
caption=help_msg,
|
|
|
206 |
|
207 |
)
|
208 |
else:
|
209 |
+
|
210 |
await m.reply_photo(
|
211 |
photo=StartPic,
|
212 |
caption=f"Press the button below to get help for <i>{help_option}</i>",
|