Class: TD::Types::MessageContent::Location

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/location.rb

Overview

A message with a location.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#expires_inInteger

Left time for which the location can be updated, in seconds. Update::MessageContent is not sent when this field changes.

Returns:

  • (Integer)

    the current value of expires_in



9
10
11
# File 'lib/tdlib/types/message_content/location.rb', line 9

def expires_in
  @expires_in
end

#live_periodInteger

Time relative to the message sent date until which the location can be updated, in seconds.

Returns:

  • (Integer)

    the current value of live_period



9
10
11
# File 'lib/tdlib/types/message_content/location.rb', line 9

def live_period
  @live_period
end

#locationTD::Types::Location

Message content.

Returns:



9
10
11
# File 'lib/tdlib/types/message_content/location.rb', line 9

def location
  @location
end