peyk.platforms.telegram.types.proximity_alert_triggered

Classes

ProximityAlertTriggered([traveler, watcher, ...])

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: object

This 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: User | None = None
watcher: User | None = None
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.