class

Tourmaline::ChosenInlineResult

Inherits JSON::Serializable / Reference / Object

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.

Constructors

new(result_id : String, from : Tourmaline::User, query : String, location : Tourmaline::Location | Nil = nil, inline_message_id : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

from

The user that chose the result

Source
from=(from : Tourmaline::User)

The user that chose the result

Source
inline_message_id

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.

Source
inline_message_id=(inline_message_id : String | Nil)

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.

Source
location

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

Source
location=(location : Tourmaline::Location | Nil)

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

Source
query

The query that was used to obtain the result

Source
query=(query : String)

The query that was used to obtain the result

Source
result_id

The unique identifier for the result that was chosen

Source
result_id=(result_id : String)

The unique identifier for the result that was chosen

Source