class Hamilton::Types::InputMediaLocation

Overview

Represents a location to be sent.

Included Modules

Defined in:

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


def latitude=(latitude : Float32) #

Latitude of the location


def longitude : Float32 #

Longitude of the location


def longitude=(longitude : Float32) #

Longitude of the 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 type : String #

Type of the media, must be "location".


def type=(type : String) #

Type of the media, must be "location".