class
Hamilton::Types::InputLocationMessageContent
- Hamilton::Types::InputLocationMessageContent
- Reference
- Object
Overview
Represents the content of a location message to be sent as the result of an inline query.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/input_message_content.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#heading : Int32 | Nil
For live locations, a direction in which the user is moving, in degrees.
-
#heading=(heading : Int32 | Nil)
For live locations, a direction in which the user is moving, in degrees.
-
#horizontal_accuracy : Float32 | Nil
The radius of uncertainty for the location, measured in meters; 0-1500.
-
#horizontal_accuracy=(horizontal_accuracy : Float32 | Nil)
The radius of uncertainty for the location, measured in meters; 0-1500.
-
#latitude : Float32
Latitude of the location in degrees.
-
#latitude=(latitude : Float32)
Latitude of the location in degrees.
-
#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.
-
#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.
-
#longitude : Float32
Longitude of the location in degrees.
-
#longitude=(longitude : Float32)
Longitude of the location in degrees.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#proximity_alert_radius : Int32 | Nil
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
-
#proximity_alert_radius=(proximity_alert_radius : Int32 | Nil)
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
The radius of uncertainty for the location, measured in meters; 0-1500.
The radius of uncertainty for the location, measured in meters; 0-1500.
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.
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.
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.