Captain Ezio commited on
Commit
a211a48
·
1 Parent(s): 63a1d34

Update start.py

Browse files
Files changed (1) hide show
  1. Powers/plugins/start.py +22 -17
Powers/plugins/start.py CHANGED
@@ -21,7 +21,7 @@ from Powers.vars import Config
21
  )
22
  async def donate(_, m: Message):
23
  LOGGER.info(f"{m.from_user.id} fetched donation text in {m.chat.id}")
24
- await m.reply_text(text="""Hey Thanks for your thought of donating me!
25
  When you donate, all the fund goes towards my development which makes on fast and responsive.
26
  Your donation might also me get me a new feature or two, which I wasn't able to get due to server limitations.
27
 
@@ -75,8 +75,9 @@ async def start(c: Gojo, m: Message):
75
  if not help_msg:
76
  return
77
 
78
- await m.reply_text(
79
- help_msg,
 
80
  parse_mode="markdown",
81
  reply_markup=ikb(help_kb),
82
  quote=True,
@@ -84,8 +85,9 @@ async def start(c: Gojo, m: Message):
84
  )
85
  return
86
  try:
87
- await m.reply_text(
88
- text="""Hey there! My name is Gojo ✨.
 
89
  I'm here to help you manage your groups!
90
  Hit /help to find out more about how to use me in my full potential!
91
 
@@ -107,8 +109,8 @@ async def start(c: Gojo, m: Message):
107
  @Gojo.on_callback_query(filters.regex("^start_back$"))
108
  async def start_back(_, q: CallbackQuery):
109
  try:
110
- await q.message.edit_text(
111
- text="""Hey there! My name is Gojo ✨.
112
  I'm here to help you manage your groups!
113
  Hit /help to find out more about how to use me in my full potential!
114
 
@@ -131,8 +133,8 @@ async def commands_menu(_, q: CallbackQuery):
131
  ],
132
  )
133
  try:
134
- await q.message.edit_text(
135
- text="""Hey There! My name is Gojo.
136
  I'm here to help you manage your groups!
137
  Commands available:
138
  × /start: Start the bot
@@ -142,8 +144,9 @@ async def commands_menu(_, q: CallbackQuery):
142
  except MessageNotModified:
143
  pass
144
  except QueryIdInvalid:
145
- await q.message.reply_text(
146
- text="""Hey There! My name is Gojo.
 
147
  I'm here to help you manage your groups!
148
  Commands available:
149
  × /start: Start the bot
@@ -168,8 +171,9 @@ async def help_menu(_, m: Message):
168
  f"{m.from_user.id} fetched help for '{help_option}' text in {m.chat.id}",
169
  )
170
  if m.chat.type == "private":
171
- await m.reply_text(
172
- help_msg,
 
173
  parse_mode="markdown",
174
  reply_markup=ikb(help_kb),
175
  quote=True,
@@ -208,8 +212,9 @@ async def help_menu(_, m: Message):
208
  [[("Help", f"t.me/{Config.BOT_USERNAME}?start=help", "url")]],
209
  )
210
  msg = "Contact me in PM to get the list of possible commands."
211
- await m.reply_text(
212
- msg,
 
213
  reply_markup=keyboard,
214
  )
215
 
@@ -225,8 +230,8 @@ async def get_module_info(_, q: CallbackQuery):
225
  help_kb = HELP_COMMANDS[module]["buttons"] + [
226
  [("« " + "Back", "commands")],
227
  ]
228
- await q.message.edit_text(
229
- help_msg,
230
  parse_mode="markdown",
231
  reply_markup=ikb(help_kb),
232
  )
 
21
  )
22
  async def donate(_, m: Message):
23
  LOGGER.info(f"{m.from_user.id} fetched donation text in {m.chat.id}")
24
+ await m.reply_animation(animation="https://media.giphy.com/media/p1ocgMPg7WIpoxHUfc/giphy.gif",caption="""Hey Thanks for your thought of donating me!
25
  When you donate, all the fund goes towards my development which makes on fast and responsive.
26
  Your donation might also me get me a new feature or two, which I wasn't able to get due to server limitations.
27
 
 
75
  if not help_msg:
76
  return
77
 
78
+ await m.reply_animation(
79
+ animation="https://media.giphy.com/media/p1ocgMPg7WIpoxHUfc/giphy.gif",
80
+ caption=help_msg,
81
  parse_mode="markdown",
82
  reply_markup=ikb(help_kb),
83
  quote=True,
 
85
  )
86
  return
87
  try:
88
+ await m.reply_animation(
89
+ animation="https://media.giphy.com/media/p1ocgMPg7WIpoxHUfc/giphy.gif",
90
+ caption="""Hey there! My name is Gojo ✨.
91
  I'm here to help you manage your groups!
92
  Hit /help to find out more about how to use me in my full potential!
93
 
 
109
  @Gojo.on_callback_query(filters.regex("^start_back$"))
110
  async def start_back(_, q: CallbackQuery):
111
  try:
112
+ await q.edit_message_caption(
113
+ caption="""Hey there! My name is Gojo ✨.
114
  I'm here to help you manage your groups!
115
  Hit /help to find out more about how to use me in my full potential!
116
 
 
133
  ],
134
  )
135
  try:
136
+ await q.edit_message_caption(
137
+ caption="""Hey There! My name is Gojo.
138
  I'm here to help you manage your groups!
139
  Commands available:
140
  × /start: Start the bot
 
144
  except MessageNotModified:
145
  pass
146
  except QueryIdInvalid:
147
+ await q.message.reply_animation(
148
+ animation="https://media.giphy.com/media/p1ocgMPg7WIpoxHUfc/giphy.gif",
149
+ caption="""Hey There! My name is Gojo.
150
  I'm here to help you manage your groups!
151
  Commands available:
152
  × /start: Start the bot
 
171
  f"{m.from_user.id} fetched help for '{help_option}' text in {m.chat.id}",
172
  )
173
  if m.chat.type == "private":
174
+ await m.reply_animation(
175
+ animation="https://media.giphy.com/media/p1ocgMPg7WIpoxHUfc/giphy.gif",
176
+ caption=help_msg,
177
  parse_mode="markdown",
178
  reply_markup=ikb(help_kb),
179
  quote=True,
 
212
  [[("Help", f"t.me/{Config.BOT_USERNAME}?start=help", "url")]],
213
  )
214
  msg = "Contact me in PM to get the list of possible commands."
215
+ await m.reply_animation(
216
+ animation="https://media.giphy.com/media/p1ocgMPg7WIpoxHUfc/giphy.gif",
217
+ caption=msg,
218
  reply_markup=keyboard,
219
  )
220
 
 
230
  help_kb = HELP_COMMANDS[module]["buttons"] + [
231
  [("« " + "Back", "commands")],
232
  ]
233
+ await q.edit_message_caption(
234
+ caption=help_msg,
235
  parse_mode="markdown",
236
  reply_markup=ikb(help_kb),
237
  )