Link Search Menu Expand Document

Method: messages.getRecentLocations

Back to methods index

Get live location history of a certain user


peerUsername, chat ID, Update, Message or InputPeerUserOptional
limitintMaximum number of results to return, see paginationOptional
hashArray of longHash for pagination, for more info click hereOptional

Return type: messages.Messages

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');

$messages_Messages = $MadelineProto->messages->getRecentLocations(peer: InputPeer, limit: int, hash: [long, long], );