AnswerInlineQueryRequest

data class AnswerInlineQueryRequest(inline_query_id: String, results: List<InlineQueryResult>, cache_time: Long?, is_personal: Boolean?, next_offset: String?, switch_pm_text: String?, switch_pm_parameter: String?) : TelegramRequest

Use this method to send answers to an inline query. On success, True is returned.
No more than 50 results per query are allowed.

Constructors

AnswerInlineQueryRequest
Link copied to clipboard
fun AnswerInlineQueryRequest(inline_query_id: String, results: List<InlineQueryResult>, cache_time: Long? = null, is_personal: Boolean? = null, next_offset: String? = null, switch_pm_text: String? = null, switch_pm_parameter: String? = null)

Properties

cache_time
Link copied to clipboard
val cache_time: Long? = null
The maximum amount of time in seconds that the result of the inline query may be cached on the server.
inline_query_id
Link copied to clipboard
val inline_query_id: String
Unique identifier for the answered query
is_personal
Link copied to clipboard
val is_personal: Boolean? = null
Pass True, if results may be cached on the server side only for the user that sent the query.
next_offset
Link copied to clipboard
val next_offset: String? = null
Pass the offset that a client should send in the next query with the same text to receive more results.
results
Link copied to clipboard
val results: List<InlineQueryResult>
A JSON-serialized array of results for the inline query
switch_pm_parameter
Link copied to clipboard
val switch_pm_parameter: String? = null
Deep-linking parameter for the /start message sent to the bot when user presses the switch button.
switch_pm_text
Link copied to clipboard
val switch_pm_text: String? = null
If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter