class Telegram::API::ProximityAlertTriggered

Overview

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(traveler : User, watcher : User, distance : Int32) #

[View source]
def self.new(pull : JSON::PullParser) #

This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.


[View source]

Instance Method Detail

def distance : Int32 #

The distance between the users


[View source]
def distance=(distance : Int32) #

The distance between the users


[View source]
def traveler : User #

User that triggered the alert


[View source]
def traveler=(traveler : User) #

User that triggered the alert


[View source]
def watcher : User #

User that set the alert


[View source]
def watcher=(watcher : User) #

User that set the alert


[View source]