class Hamilton::Types::InputLocationMessageContent

Overview

Represents the content of a location message to be sent as the result of an inline query.

Included Modules

Defined in:

types/input_message_content.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 latitude : Float32 #

Latitude of the location in degrees.


def latitude=(latitude : Float32) #

Latitude of the location 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 #

Longitude of the location in degrees.


def longitude=(longitude : Float32) #

Longitude of the location 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.