TheHamkerCat 5 年 前
親
コミット
473e9d8409
1 ファイル変更、7 行追加、2 行削除
  1. 7 2
      wbb/modules/inline.py

+ 7 - 2
wbb/modules/inline.py

@@ -12,11 +12,16 @@ tr [LANGUAGE_CODE] [QUERY] - Translate Text.
 ud [QUERY] - Urban Dictionary Query.
 google [Query] - Google Search.
 alive - Check Bot's Stats.
-webss [URL] - Take A Screenshot Of A Website."""
+webss [URL] - Take A Screenshot Of A Website.
+bitly [URL] - Shorten A Link"""
 
 
 """ Inspiration From https://github.com/pokurt/Nana-Remix/blob/master/nana/plugins/assistant/inline_mod/alive.py """
 
+@app.on_message(filters.command("inline"))
+async def inline_help(_, message):
+    await app.send_message(message.chat.id, text=__HELP__)
+
 
 @app.on_inline_query()
 async def inline_query_handler(client, query):
@@ -28,7 +33,7 @@ async def inline_query_handler(client, query):
                 query.id,
                 results=answers,
                 switch_pm_text='Click here for help',
-                switch_pm_parameter='help',
+                switch_pm_parameter='inline',
             )
             return
         elif text.split()[0] == "alive":