messages.getSavedDialogs
Returns the current saved dialog list » or monoforum topic list ».
func (c *Client) MessagesGetSavedDialogs(ctx context.Context, request *MessagesGetSavedDialogsRequest) (MessagesSavedDialogsClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetSavedDialogs(ctx, &tg.MessagesGetSavedDialogsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesSavedDialogsClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ExcludePinned | bool | — | Exclude pinned dialogs |
ParentPeer | InputPeerClass | — | If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list. |
OffsetDate | int | yes | Offsets for pagination, for more info click here |
OffsetID | int | yes | Offsets for pagination, for more info click here (top_message ID used for pagination) |
OffsetPeer | InputPeerClass | yes | Offset peer for pagination |
Limit | int | yes | Number of list elements to be returned |
Hash | int64 | yes | Hash used for caching, for more info click here |
Returns
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getSavedDialogs#1e91fc99