peyk.platforms.telegram.types.proximity_alert_triggered¶
Classes
|
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. |
- class peyk.platforms.telegram.types.proximity_alert_triggered.ProximityAlertTriggered(traveler: User | None = None, watcher: User | None = None, distance: int = 0)[source]¶
Bases:
objectThis object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
- Variables:
traveler (peyk.platforms.telegram.types.user.User | None) – User that triggered the alert
watcher (peyk.platforms.telegram.types.user.User | None) – User that set the alert
distance (int) – The distance between the users
- distance: int = 0¶
- classmethod from_dict(data: dict | None) ProximityAlertTriggered | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.