Class: TD::Types::InputMessageContent::Location
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::Location
- Defined in:
- lib/tdlib/types/input_message_content/location.rb
Overview
A message with a location.
Instance Attribute Summary collapse
-
#heading ⇒ Integer
For live locations, a direction in which the location moves, in degrees; 1-360.
-
#live_period ⇒ Integer
Period for which the location can be updated, in seconds; should be between 60 and 86400 for a live location and 0 otherwise.
-
#location ⇒ TD::Types::Location
Location to be sent.
-
#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
#heading ⇒ Integer
For live locations, a direction in which the location moves, in degrees; 1-360. Pass 0 if unknown.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/location.rb', line 13 def heading @heading end |
#live_period ⇒ Integer
Period for which the location can be updated, in seconds; should be between 60 and 86400 for a live location and 0 otherwise.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/location.rb', line 13 def live_period @live_period end |
#location ⇒ TD::Types::Location
Location to be sent.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/location.rb', line 13 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). Pass 0 if the notification is disabled. Can’t be enabled in channels and Saved Messages.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/location.rb', line 13 def proximity_alert_radius @proximity_alert_radius end |