class Telegram::API::Location
- Telegram::API::Location
- Telegram::API::Type
- Reference
- Object
Overview
This object represents a point on the map.
Defined in:
telegram/api/generated/types.crConstructors
- .new(longitude : Float64, latitude : Float64, horizontal_accuracy : Float64 | Nil = nil, live_period : Int32 | Nil = nil, heading : Int32 | Nil = nil, proximity_alert_radius : Int32 | Nil = nil)
-
.new(pull : JSON::PullParser)
This object represents a point on the map.
Instance Method Summary
-
#heading : Int32 | Nil
Optional.
-
#heading=(heading : Int32 | Nil)
Optional.
-
#horizontal_accuracy : Float64 | Nil
Optional.
-
#horizontal_accuracy=(horizontal_accuracy : Float64 | Nil)
Optional.
-
#latitude : Float64
Latitude as defined by sender
-
#latitude=(latitude : Float64)
Latitude as defined by sender
-
#live_period : Int32 | Nil
Optional.
-
#live_period=(live_period : Int32 | Nil)
Optional.
-
#longitude : Float64
Longitude as defined by sender
-
#longitude=(longitude : Float64)
Longitude as defined by sender
-
#proximity_alert_radius : Int32 | Nil
Optional.
-
#proximity_alert_radius=(proximity_alert_radius : Int32 | Nil)
Optional.
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
Instance Method Detail
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Optional. The radius of uncertainty for the location, measured in meters; 0-1500
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.