messages.GetRecentLocations

class pyrogram.raw.functions.messages.GetRecentLocations

Get live location history of a certain user

Details:
  • Layer: 227

  • 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
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── limit → int
└── hash → long

Example

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