Layer 220
MessagesGetSavedDialogs
Returns the current saved dialog list or monoforum topic list.
method
Users
messages.getSavedDialogs#1e91fc99 flags:# exclude_pinned:flags.0?true parent_peer:flags.1?InputPeer offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.SavedDialogs;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| ExcludePinned | flags.0?true | Exclude pinned dialogs |
| ParentPeer | flags.1?InputPeer | If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list. |
| OffsetDate | int | Offsets for pagination, for more info click here |
| OffsetId | int | Offsets for pagination, for more info click here ( top_message ID used for pagination) |
| OffsetPeer | InputPeer | Offset peer for pagination |
| Limit | int | Number of list elements to be returned |
| Hash | long | Hash used for caching, for more info click here |
Returns
messages.SavedDialogsGogram Example
// MessagesGetSavedDialogs - using Params struct result, err := client.MessagesGetSavedDialogs(&tg.MessagesGetSavedDialogsParams{ OffsetDate: 0, OffsetId: 0, OffsetPeer: &tg.InputPeerUser{UserID: int64(123456789)}, Limit: 0, Hash: int64(0), // Optional fields: // ExcludePinned: true, // ParentPeer: &tg.InputPeerUser{UserID: int64(123456789)}, }) if err != nil { // handle error } // result is *tg.MessagesSavedDialogs