ProximityAlertTriggered

class aiogram.types.proximity_alert_triggered.ProximityAlertTriggered(*, traveler: User, watcher: User, distance: int, **extra_data: Any)[source]

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

Source: https://core.telegram.org/bots/api#proximityalerttriggered

traveler: User

User that triggered the alert

watcher: User

User that set the alert

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

distance: int

The distance between the users