messages.GetRecentLocations
- class pyrogram.raw.functions.messages.GetRecentLocations
Get live location history of a certain user
- Details:
Layer:
223ID:
702A40E0
- Parameters:
peer (
InputPeer) – Userlimit (
int32-bit) – Maximum number of results to return, see paginationhash (
int64-bit) – Hash used for caching, for more info click here
- Returns:
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│ ├──
InputPeerUserFromMessage│ │ ├── 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 →
longExample
await app.invoke(
GetRecentLocations(
peer=await app.resolve_peer(chat_id),
limit=0,
hash=0,
)
)