ChosenInlineResult

@Serializable
data class ChosenInlineResult(val resultId: String, val from: User, val location: LocationContent? = null, val inlineMessageId: String? = null, val query: String)

Represents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via @BotFather in order to receive these objects in updates.

Api reference

Constructors

Link copied to clipboard
constructor(resultId: String, from: User, location: LocationContent? = null, inlineMessageId: String? = null, query: String)

Properties

Link copied to clipboard
val from: User

The user that chose the result

Link copied to clipboard
val inlineMessageId: String? = null

Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.

Link copied to clipboard

Optional. Sender location, only for bots that require user location

Link copied to clipboard

The query that was used to obtain the result

Link copied to clipboard

The unique identifier for the result that was chosen