Class: TD::Types::MessageContent::ProximityAlertTriggered

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

Overview

A user in the chat came within proximity alert range.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#distanceInteger

The distance between the users.

Returns:

  • (Integer)

    the current value of distance



7
8
9
# File 'lib/tdlib/types/message_content/proximity_alert_triggered.rb', line 7

def distance
  @distance
end

#travelerTD::Types::MessageSender

The user or chat, which triggered the proximity alert.

Returns:



7
8
9
# File 'lib/tdlib/types/message_content/proximity_alert_triggered.rb', line 7

def traveler
  @traveler
end

#watcherTD::Types::MessageSender

The user or chat, which subscribed for the proximity alert.

Returns:



7
8
9
# File 'lib/tdlib/types/message_content/proximity_alert_triggered.rb', line 7

def watcher
  @watcher
end