class Hamilton::Types::ChosenInlineResult

Overview

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

Defined in:

types/chosen_inline_reslt.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

The user that chose the result.


def from=(from : Hamilton::Types::User) #

The user that chose the result.


def inline_message_id : String | Nil #

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.


def inline_message_id=(inline_message_id : String | Nil) #

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.


def location : Hamilton::Types::Location | Nil #

Sender location, only for bots that require user location.


def location=(location : Hamilton::Types::Location | Nil) #

Sender location, only for bots that require user location.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def query : String #

The query that was used to obtain the result.


def query=(query : String) #

The query that was used to obtain the result.


def result_id : String #

The unique identifier for the result that was chosen.


def result_id=(result_id : String) #

The unique identifier for the result that was chosen.