|
@@ -12,11 +12,16 @@ tr [LANGUAGE_CODE] [QUERY] - Translate Text.
|
|
|
ud [QUERY] - Urban Dictionary Query.
|
|
ud [QUERY] - Urban Dictionary Query.
|
|
|
google [Query] - Google Search.
|
|
google [Query] - Google Search.
|
|
|
alive - Check Bot's Stats.
|
|
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 """
|
|
""" 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()
|
|
@app.on_inline_query()
|
|
|
async def inline_query_handler(client, query):
|
|
async def inline_query_handler(client, query):
|
|
@@ -28,7 +33,7 @@ async def inline_query_handler(client, query):
|
|
|
query.id,
|
|
query.id,
|
|
|
results=answers,
|
|
results=answers,
|
|
|
switch_pm_text='Click here for help',
|
|
switch_pm_text='Click here for help',
|
|
|
- switch_pm_parameter='help',
|
|
|
|
|
|
|
+ switch_pm_parameter='inline',
|
|
|
)
|
|
)
|
|
|
return
|
|
return
|
|
|
elif text.split()[0] == "alive":
|
|
elif text.split()[0] == "alive":
|