Sha256: 0d9c604036d18ed3371e14b1535fc68b8fbb6b9326a8c2c5b401084f89d76dec

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

module TD::Types
  # A message with a location.
  #
  # @attr location [TD::Types::Location] Location to be sent.
  # @attr 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.
  # @attr heading [Integer] For live locations, a direction in which the location moves, in degrees; 1-360.
  #   Pass 0 if unknown.
  # @attr 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.
  class InputMessageContent::Location < InputMessageContent
    attribute :location, TD::Types::Location
    attribute :live_period, TD::Types::Coercible::Integer
    attribute :heading, TD::Types::Coercible::Integer
    attribute :proximity_alert_radius, TD::Types::Coercible::Integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/input_message_content/location.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/input_message_content/location.rb