ChatKtx.getInlineQueryResults - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getInlineQueryResults

getInlineQueryResults

open suspend fun Chat.getInlineQueryResults(botUserId: Int, userLocation: Location?, query: String?, offset: String?): InlineQueryResults

Suspend function, which sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires.

Parameters

botUserId - The identifier of the target bot.

userLocation - Location of the user, only if needed.

query - Text of the query.

offset - Offset of the first entry to return.

Return TdApi.InlineQueryResults Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.