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; if 0x7FFFFFFF, then location can be updated forever.
-
#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. If 0, then the location can’t be updated anymore. The update Update::MessageContent is not sent when this field changes.
16 17 18 |
# File 'lib/tdlib/types/message_content/location.rb', line 16 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.
16 17 18 |
# File 'lib/tdlib/types/message_content/location.rb', line 16 def heading @heading end |
#live_period ⇒ Integer
Time relative to the message send date, for which the location can be updated, in seconds; if 0x7FFFFFFF, then location can be updated forever.
16 17 18 |
# File 'lib/tdlib/types/message_content/location.rb', line 16 def live_period @live_period end |
#location ⇒ TD::Types::Location
The location description.
16 17 18 |
# File 'lib/tdlib/types/message_content/location.rb', line 16 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 to the message sender.
16 17 18 |
# File 'lib/tdlib/types/message_content/location.rb', line 16 def proximity_alert_radius @proximity_alert_radius end |