Class: TD::Types::MessageContent::Location
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::Location
- Defined in:
- lib/tdlib/types/message_content/location.rb
Overview
A message with a location.
Instance Attribute Summary collapse
-
#expires_in ⇒ Integer
Left time for which the location can be updated, in seconds.
-
#heading ⇒ Integer
For live locations, a direction in which the location moves, in degrees; 1-360.
-
#live_period ⇒ Integer
Time relative to the message send date, for which the location can be updated, in seconds.
-
#location ⇒ TD::Types::Location
The location description.
-
#proximity_alert_radius ⇒ Integer
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000).
Method Summary
Methods inherited from Base
Instance Attribute Details
#expires_in ⇒ Integer
Left time for which the location can be updated, in seconds. Update::MessageContent is not sent when this field changes.
15 16 17 |
# File 'lib/tdlib/types/message_content/location.rb', line 15 def expires_in @expires_in end |
#heading ⇒ Integer
For live locations, a direction in which the location moves, in degrees; 1-360. If 0 the direction is unknown.
15 16 17 |
# File 'lib/tdlib/types/message_content/location.rb', line 15 def heading @heading end |
#live_period ⇒ Integer
Time relative to the message send date, for which the location can be updated, in seconds.
15 16 17 |
# File 'lib/tdlib/types/message_content/location.rb', line 15 def live_period @live_period end |
#location ⇒ TD::Types::Location
The location description.
15 16 17 |
# File 'lib/tdlib/types/message_content/location.rb', line 15 def location @location end |
#proximity_alert_radius ⇒ Integer
For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000). 0 if the notification is disabled. Available only for the message sender.
15 16 17 |
# File 'lib/tdlib/types/message_content/location.rb', line 15 def proximity_alert_radius @proximity_alert_radius end |