bot.inline Module#
Methods for the inline mode.
- async bot.inline.handle_chosen_inline_result(update, context)
Appends the chosen sticker ID to the users corresponding list.
- async bot.inline.inline(update, context)
Answers an inline query by starting a task running
inline_task()
and terminating any existing such task for the current user.
- async bot.inline.inline_task(update, context, event)
Answers an inline query by providing the corresponding sticker.
- Parameters:
update (
Update
) – The Telegram update.context (
CallbackContext
[ExtBot
,UserData
,dict
,dict
]) – The callback context as provided by the application.event (
Event
) –event.is_set()
will be checked before the time consuming parts of the sticker creation and if the event is set, the creation will be terminated.
- Return type: