Skip to content

class Tourmaline::ChosenInlineResult
inherits Reference #

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.

Included modules

JSON::Serializable

Constructors#

.new(result_id, from, query, location : Tourmaline::Location? = nil, inline_message_id : String? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#from : Tourmaline::User #

The user that chose the result

View source

#from=(from : Tourmaline::User) #

The user that chose the result

View source

#inline_message_id : String? #

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.

View source

#inline_message_id=(inline_message_id : String?) #

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.

View source

#location : Tourmaline::Location? #

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

View source

#location=(location : Tourmaline::Location?) #

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

View source

#query : String #

The query that was used to obtain the result

View source

#query=(query : String) #

The query that was used to obtain the result

View source

#result_id : String #

The unique identifier for the result that was chosen

View source

#result_id=(result_id : String) #

The unique identifier for the result that was chosen

View source