ProximityAlertTriggered

class telegram.ProximityAlertTriggered(traveler, watcher, distance, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This 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, watcher and distance are equal.

Parameters:
traveler[source]

User that triggered the alert

Type:

telegram.User

watcher[source]

User that set the alert

Type:

telegram.User

distance[source]

The distance between the users

Type:

int

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().