class Hamilton::Types::InlineQueryResultLocation

Overview

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use #input_message_content to send a message with the specified content instead of the location.

Included Modules

Defined in:

types/inline_query_result.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

def heading : Int32 | Nil #

For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.


def heading=(heading : Int32 | Nil) #

For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.


def horizontal_accuracy : Float32 | Nil #

The radius of uncertainty for the location, measured in meters; 0-1500.


def horizontal_accuracy=(horizontal_accuracy : Float32 | Nil) #

The radius of uncertainty for the location, measured in meters; 0-1500.


def id : String #

Unique identifier for this result, 1-64 Bytes.


def id=(id : String) #

Unique identifier for this result, 1-64 Bytes.


def input_message_content : Hamilton::Types::InputMessageContent | Nil #

Content of the message to be sent instead of the location.


def input_message_content=(input_message_content : Hamilton::Types::InputMessageContent | Nil) #

Content of the message to be sent instead of the location.


def latitude : Float32 #

Location latitude in degrees.


def latitude=(latitude : Float32) #

Location latitude in degrees.


def live_period : Int32 | Nil #

Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.


def live_period=(live_period : Int32 | Nil) #

Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.


def longitude : Float32 #

Location longitude in degrees.


def longitude=(longitude : Float32) #

Location longitude in degrees.


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 proximity_alert_radius : Int32 | Nil #

For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.


def proximity_alert_radius=(proximity_alert_radius : Int32 | Nil) #

For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.


def reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil #

Inline keyboard attached to the message.


def reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil) #

Inline keyboard attached to the message.


def thumbnail_height : Int32 | Nil #

Thumbnail height.


def thumbnail_height=(thumbnail_height : Int32 | Nil) #

Thumbnail height.


def thumbnail_url : String | Nil #

Url of the thumbnail for the result.


def thumbnail_url=(thumbnail_url : String | Nil) #

Url of the thumbnail for the result.


def thumbnail_width : Int32 | Nil #

Thumbnail width.


def thumbnail_width=(thumbnail_width : Int32 | Nil) #

Thumbnail width.


def title : String #

Location title.


def title=(title : String) #

Location title.


def type : String #

Type of the result, must be "location".


def type=(type : String) #

Type of the result, must be "location".