messages.GetRecentLocations

class pyrogram.raw.functions.messages.GetRecentLocations

Get live location history of a certain user

Details:
  • Layer: 223

  • ID: 702A40E0

Parameters:
  • peer (InputPeer) – User

  • limit (int 32-bit) – Maximum number of results to return, see pagination

  • hash (int 64-bit) – Hash used for caching, for more info click here

Returns:

messages.Messages

TL Schema

messages.getRecentLocations#702a40e0
peer:InputPeer
limit:int
hash:long

= messages.Messages

Parameter Tree

GetRecentLocations
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── limitint
└── hashlong

Example

await app.invoke(
    GetRecentLocations(
        peer=await app.resolve_peer(chat_id),
        limit=0,
        hash=0,
    )
)