ChosenInlineResult

data class ChosenInlineResult(resultId: String, from: User, location: Location?, inlineMessageId: String?, 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. Your bot can accept payments from Telegram users. Please see the introduction to payments for more details on the process and how to set up payments for your bot. Please note that users will need Telegram v.4.0 or higher to use payments (released on May 18, 2017).

Parameters

resultId

The unique identifier for the result that was chosen

from

The user that chose the result

location

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

inlineMessageId

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.

query

The query that was used to obtain the result

Constructors

ChosenInlineResult
Link copied to clipboard
common
fun ChosenInlineResult(resultId: String, from: User, location: Location? = null, inlineMessageId: String? = null, query: String)
The unique identifier for the result that was chosen

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): User
component3
Link copied to clipboard
common
operator fun component3(): Location?
component4
Link copied to clipboard
common
operator fun component4(): String?
component5
Link copied to clipboard
common
operator fun component5(): String
copy
Link copied to clipboard
common
fun copy(resultId: String, from: User, location: Location? = null, inlineMessageId: String? = null, query: String): ChosenInlineResult
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

from
Link copied to clipboard
common
val from: User
The user that chose the result
inlineMessageId
Link copied to clipboard
common
val inlineMessageId: String? = null
Optional.
location
Link copied to clipboard
common
val location: Location? = null
Optional.
query
Link copied to clipboard
common
val query: String
The query that was used to obtain the result
resultId
Link copied to clipboard
common
val resultId: String
The unique identifier for the result that was chosen