@@ -66,7 +66,6 @@ async def send_msg(chat, text, buttons=None, **kwargs):
6666 await tgbot .send_message (
6767 int (ch ), txt , link_preview = link_preview , parse_mode = parse_mode
6868 )
69- break
7069 elif isinstance (chat , str ) or isinstance (chat , int ):
7170 if buttons is not None :
7271 await tgbot .send_message (
@@ -220,7 +219,7 @@ async def respond(request):
220219 buttons = btns ,
221220 link_preview = False ,
222221 )
223-
222+ return { "msg" : "Success" }
224223 elif result .get ("pull_request" ):
225224 pr_action = result ["action" ]
226225 pr = result ["pull_request" ]
@@ -238,6 +237,7 @@ async def respond(request):
238237 else :
239238 text = f"**Reopened Pull Request**\n By: { pull_pusher } \n [{ pull_t } ]({ pull_r } )\n **Timestamp**: { str_time } \n [Commits]({ pull_commits } )\n \n #GithubBot"
240239 await send_msg (GB_grps , text , parse_mode = "markdown" , link_preview = False )
240+ return {"msg" : "Success" }
241241 elif result .get ("action" ) == "started" :
242242
243243 @tgbot .on (events .CallbackQuery (pattern = "stars" ))
@@ -258,6 +258,7 @@ async def callback(event):
258258 buttons = Button .inline ("Total Stars" , b"stars" ),
259259 link_preview = False ,
260260 )
261+ return {"msg" : "Success" }
261262 elif result .get ("forkee" ):
262263
263264 @tgbot .on (events .CallbackQuery (pattern = "forks" ))
@@ -278,8 +279,9 @@ async def fucku(event):
278279 buttons = Button .inline ("Total Forks" , b"forks" ),
279280 link_preview = False ,
280281 )
282+ return {"msg" : "Success" }
281283 else :
282- return
284+ return { "msg" : "Success" }
283285 # IDK WHat
284286 # loop.run_until_complete()
285287 except BaseException :
0 commit comments