iamgojoof6eyes commited on
Commit
f72d3ee
·
1 Parent(s): c11ea2e

Looks fine

Browse files
Powers/plugins/start.py CHANGED
@@ -20,7 +20,7 @@ from Powers.utils.start_utils import (
20
  )
21
  from Powers.vars import Config
22
 
23
- StartPic = choice(StartPic)
24
 
25
  @Gojo.on_message(
26
  command("donate") & (filters.group | filters.private),
@@ -35,6 +35,7 @@ async def donate(_, m: Message):
35
 
36
  You can donate by contacting my owner: [Captain Ezio](http://t.me/iamgojoof6eyes)
37
  """
 
38
 
39
  LOGGER.info(f"{m.from_user.id} fetched donation text in {m.chat.id}")
40
  await m.reply_photo(photo=StartPic,
@@ -87,6 +88,8 @@ async def start(c: Gojo, m: Message):
87
  if not help_msg:
88
  return
89
 
 
 
90
  await m.reply_photo(
91
  photo=StartPic,
92
  caption=help_msg,
@@ -104,6 +107,8 @@ async def start(c: Gojo, m: Message):
104
 
105
  Join my [News Channel](https://t.me/gojo_updates) to get information on all the latest updates."""
106
 
 
 
107
  await m.reply_photo(
108
  photo=StartPic,
109
  caption=cpt,
@@ -189,6 +194,7 @@ async def help_menu(_, m: Message):
189
  )
190
  chat_type = await chattype(m)
191
  if chat_type == "private":
 
192
  await m.reply_photo(
193
  photo=StartPic,
194
  caption=help_msg,
@@ -198,6 +204,7 @@ async def help_menu(_, m: Message):
198
 
199
  )
200
  else:
 
201
  await m.reply_photo(
202
  photo=StartPic,
203
  caption=f"Press the button below to get help for <i>{help_option}</i>",
@@ -233,6 +240,7 @@ async def help_menu(_, m: Message):
233
  [[("Help", f"t.me/{Config.BOT_USERNAME}?start=help", "url")]],
234
  )
235
  msg = "Contact me in PM to get the list of possible commands."
 
236
  await m.reply_photo(
237
  photo=StartPic,
238
  caption=msg,
 
20
  )
21
  from Powers.vars import Config
22
 
23
+
24
 
25
  @Gojo.on_message(
26
  command("donate") & (filters.group | filters.private),
 
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,
 
88
  if not help_msg:
89
  return
90
 
91
+ StartPic = choice(StartPic)
92
+
93
  await m.reply_photo(
94
  photo=StartPic,
95
  caption=help_msg,
 
107
 
108
  Join my [News Channel](https://t.me/gojo_updates) to get information on all the latest updates."""
109
 
110
+ StartPic = choice(StartPic)
111
+
112
  await m.reply_photo(
113
  photo=StartPic,
114
  caption=cpt,
 
194
  )
195
  chat_type = await chattype(m)
196
  if chat_type == "private":
197
+ StartPic = choice(StartPic)
198
  await m.reply_photo(
199
  photo=StartPic,
200
  caption=help_msg,
 
204
 
205
  )
206
  else:
207
+ StartPic = choice(StartPic)
208
  await m.reply_photo(
209
  photo=StartPic,
210
  caption=f"Press the button below to get help for <i>{help_option}</i>",
 
240
  [[("Help", f"t.me/{Config.BOT_USERNAME}?start=help", "url")]],
241
  )
242
  msg = "Contact me in PM to get the list of possible commands."
243
+ StartPic = choice(StartPic)
244
  await m.reply_photo(
245
  photo=StartPic,
246
  caption=msg,
Powers/utils/chat_type.py CHANGED
@@ -20,8 +20,6 @@ async def chattype(m: Message):
20
  if m.chat.type == ChatType.SUPERGROUP:
21
  ct = "supergroup"
22
 
23
- if m.chat.type == ChatType.BOT:
24
- ct ="bot"
25
 
26
 
27
  return ct
@@ -31,9 +29,6 @@ async def c_type(chat_id):
31
 
32
  c = await Gojo.get_chat(chat_id)
33
 
34
- if c.type == ChatType.BOT:
35
- ct = "bot"
36
-
37
  if c.type == ChatType.CHANNEL:
38
  ct = "channel"
39
 
 
20
  if m.chat.type == ChatType.SUPERGROUP:
21
  ct = "supergroup"
22
 
 
 
23
 
24
 
25
  return ct
 
29
 
30
  c = await Gojo.get_chat(chat_id)
31
 
 
 
 
32
  if c.type == ChatType.CHANNEL:
33
  ct = "channel"
34