MadelineProtoDocs/docs/API_docs/constructors/messageActionGeoProximityReached.md

32 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "messageActionGeoProximityReached"
description: "A user of the chat is now in proximity of another user"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageActionGeoProximityReached
[Back to constructors index](/API_docs/constructors/index.html)
A user of the chat is now in proximity of another user
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|from\_id|[Peer](/API_docs/types/Peer.html) | Yes|The user or chat that is now in proximity of `to_id`|
|to\_id|[Peer](/API_docs/types/Peer.html) | Yes|The user or chat that subscribed to [live geolocation proximity alerts](https://core.telegram.org/api/live-location#proximity-alert)|
|distance|[int](/API_docs/types/int.html) | Yes|Distance, in meters (0-100000)|
### Type: [MessageAction](/API_docs/types/MessageAction.html)
### Example:
```
$messageActionGeoProximityReached = ['_' => 'messageActionGeoProximityReached', 'from_id' => Peer, 'to_id' => Peer, 'distance' => int];
```