Method: contacts.getLocated

Back to methods index

Get contacts near you


Name Type Description Required
background Bool   Optional
geo_point InputGeoPoint Geolocation Optional
self_expires int   Optional

Return type: Updates

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$Updates = $MadelineProto->contacts->getLocated(['background' => Bool, 'geo_point' => InputGeoPoint, 'self_expires' => int, ]);

Or, if you’re into Lua:

Updates = contacts.getLocated({background=Bool, geo_point=InputGeoPoint, self_expires=int, })
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.