Class ProximityAlertTriggered
java.lang.Object
io.micronaut.chatbots.telegram.api.ProximityAlertTriggered
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
ProximityAlterTrigger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Integer@NonNull User@NonNull UservoidsetDistance(@NonNull Integer distance) voidsetTraveler(@NonNull User traveler) voidsetWatcher(@NonNull User watcher)
-
Constructor Details
-
ProximityAlertTriggered
public ProximityAlertTriggered()
-
-
Method Details
-
getTraveler
- Returns:
- User that triggered the alert.
-
setTraveler
- Parameters:
traveler- User that triggered the alert.
-
getWatcher
- Returns:
- User that set the alert.
-
setWatcher
- Parameters:
watcher- User that set the alert.
-
getDistance
- Returns:
- The distance between the users.
-
setDistance
- Parameters:
distance- The distance between the users.
-