bot.inline Module#
The module contains functions for the inline mode.
- async bot.inline.direct_search(update, context)#
Puts the inline query directly through
SphinxSearchEngine.inline_results()
and displays the corresponding results.- Parameters:
update (
telegram._update.Update
) – The incoming Telegram update containing a message.context (
telegram.ext._callbackcontext.CallbackContext
[telegram.ext._extbot.ExtBot
[None
],typing.Dict
[typing.Any
,typing.Any
],typing.Dict
[typing.Any
,typing.Any
],typing.Dict
[typing.Any
,typing.Any
]]) – The context as provided by thetelegram.ext.Dispatcher
.
- Return type:
- async bot.inline.insert_search(update, context)#
Searches for results for all terms enclosed in
+
and displays corresponding results.- Parameters:
update (
telegram._update.Update
) – The incoming Telegram update containing a message.context (
telegram.ext._callbackcontext.CallbackContext
[telegram.ext._extbot.ExtBot
[None
],typing.Dict
[typing.Any
,typing.Any
],typing.Dict
[typing.Any
,typing.Any
],typing.Dict
[typing.Any
,typing.Any
]]) – The context as provided by thetelegram.ext.Dispatcher
.
- Return type: