libtd-ktx / kotlinx.telegram.coroutines / answerInlineQuery
answerInlineQuery
suspend fun TelegramFlow.answerInlineQuery(inlineQueryId: Long, isPersonal: Boolean, results: Array<InputInlineQueryResult>?, cacheTime: Int, nextOffset: String?, switchPmText: String?, switchPmParameter: String?): Unit
Suspend function, which sets the result of an inline query; for bots only.
Parameters
inlineQueryId - Identifier of the inline query.
isPersonal - True, if the result of the query can be cached for the specified user.
results - The results of the query.
cacheTime - Allowed time to cache the results of the query, in seconds.
nextOffset - Offset for the next inline query; pass an empty string if there are no more
results.
switchPmText - If non-empty, this text should be shown on the button that opens a private
chat with the bot and sends a start message to the bot with the parameter switchPmParameter.
switchPmParameter - The parameter for the bot start message.