Inline Mode
Part of the API Reference.
answerInlineQuery
Future<bool> answerInlineQuery(
String inlineQueryId,
List<Json> results, {
int? cacheTime,
bool? isPersonal,
String? nextOffset,
Json? button,
}) async =>
Responds to an inline query (@yourbot ... typed in any chat) with a list
of [results] the user can pick from.
answerWebAppQuery
Future<Json> answerWebAppQuery(String webAppQueryId, Json result) async =>
Sends a [result] back to a Web App that was opened via a switch_inline_query-style button.
savePreparedInlineMessage
Future<Json> savePreparedInlineMessage(
int userId,
Json result, {
bool? allowUserChats,
bool? allowBotChats,
bool? allowGroupChats,
bool? allowChannelChats,
}) async =>
Pre-uploads an inline message result so it can be reused efficiently across many users.
savePreparedKeyboardButton
Future<Json> savePreparedKeyboardButton(
int userId,
Json button, {
bool? allowUserChats,
bool? allowBotChats,
bool? allowGroupChats,
bool? allowChannelChats,
}) async =>
Stores a keyboard [button] (e.g. a users/chat/managed-bot request
button — see [KeyboardButton]) for reuse from a Mini App via
sendPreparedMessage. Returns a PreparedKeyboardButton (raw JSON).
The allow*Chats flags mirror [Bot.savePreparedInlineMessage]'s.