class Telegram::API::ProximityAlertTriggered
- Telegram::API::ProximityAlertTriggered
- Telegram::API::Type
- Reference
- Object
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.crConstructors
- .new(traveler : User, watcher : User, distance : Int32)
-
.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.
Instance Method Summary
-
#distance : Int32
The distance between the users
-
#distance=(distance : Int32)
The distance between the users
-
#traveler : User
User that triggered the alert
-
#traveler=(traveler : User)
User that triggered the alert
-
#watcher : User
User that set the alert
-
#watcher=(watcher : User)
User that set the alert
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(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.