messages.getRecentLocations

Get all recent live locations sent to a specific chat: returns up to 1 location message (messageMediaGeoLive) per chat participant.

 Method schema is available as of layer 76. Switch ยป

Parameters

Name Type Description
peer InputPeer Target group or private chat.
limit int Maximum number of results to return, see pagination
hash long Hash used for caching, for more info click here

Result

messages.Messages

Only users can use this method

Related pages

Pagination in the API

How to fetch results from large lists of objects.

Live geolocation

Telegram allows sending the live geolocation of a user in a chat, optionally setting a proximity alert.

messageMediaGeoLive

Indicates a live geolocation