messages.getRecentLocations

Get live location history of a certain user

messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesSlice#c8edce1e flags:# inexact:flags.1?true count:int next_rate:flags.0?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.channelMessages#99262e37 flags:# inexact:flags.1?true pts:int count:int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesNotModified#74535f21 count:int = messages.Messages;
---functions---
messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages;

Parameters

Name Type Description
peer InputPeer User
limit int Maximum number of results to return, see pagination
hash int Hash for pagination, for more info click here

Result

messages.Messages

Possible errors

Code Type Description
400 BOT_METHOD_INVALID This method can't be used by a bot

Related pages

Pagination in the API

How to fetch results from large lists of objects.