telegram.ProximityAlertTriggered
- class telegram.ProximityAlertTriggered(traveler, watcher, distance, **_kwargs)
Bases:
telegram.base.TelegramObjectThis object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
traveler,watcheranddistanceare equal.- Parameters
traveler (
telegram.User) – User that triggered the alertwatcher (
telegram.User) – User that set the alertdistance (
int) – The distance between the users
- traveler
User that triggered the alert
- Type
- watcher
User that set the alert
- Type
- distance
The distance between the users
- Type
int
- classmethod de_json(data, bot)