Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
e0f6188
1
Parent(s):
98b221c
Update start.py
Browse files- Powers/plugins/start.py +3 -3
Powers/plugins/start.py
CHANGED
|
@@ -35,7 +35,7 @@ async def donate(_, m: Message):
|
|
| 35 |
|
| 36 |
You can donate by contacting my owner: [Captain Ezio](http://t.me/iamgojoof6eyes)
|
| 37 |
"""
|
| 38 |
-
StartPic = choice(StartPic)
|
| 39 |
|
| 40 |
LOGGER.info(f"{m.from_user.id} fetched donation text in {m.chat.id}")
|
| 41 |
await m.reply_photo(photo=StartPic,
|
|
@@ -68,7 +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 |
-
StartPic = choice(StartPic)
|
| 72 |
chat_type = await chattype(m)
|
| 73 |
if chat_type == "private":
|
| 74 |
if len(m.text.split()) > 1:
|
|
@@ -182,7 +182,7 @@ async def commands_menu(_, q: CallbackQuery):
|
|
| 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)
|
|
|
|
| 35 |
|
| 36 |
You can donate by contacting my owner: [Captain Ezio](http://t.me/iamgojoof6eyes)
|
| 37 |
"""
|
| 38 |
+
global StartPic = choice(StartPic)
|
| 39 |
|
| 40 |
LOGGER.info(f"{m.from_user.id} fetched donation text in {m.chat.id}")
|
| 41 |
await m.reply_photo(photo=StartPic,
|
|
|
|
| 68 |
command("start") & (filters.group | filters.private),
|
| 69 |
)
|
| 70 |
async def start(c: Gojo, m: Message):
|
| 71 |
+
global StartPic = choice(StartPic)
|
| 72 |
chat_type = await chattype(m)
|
| 73 |
if chat_type == "private":
|
| 74 |
if len(m.text.split()) > 1:
|
|
|
|
| 182 |
|
| 183 |
@Gojo.on_message(command("help"))
|
| 184 |
async def help_menu(_, m: Message):
|
| 185 |
+
global 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)
|