Skip to main content

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​

NameTypeRequiredDescription
ExcludePinnedbool—Exclude pinned dialogs
ParentPeerInputPeerClass—If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list.
OffsetDateintyesOffsets for pagination, for more info click here
OffsetIDintyesOffsets for pagination, for more info click here (top_message ID used for pagination)
OffsetPeerInputPeerClassyesOffset peer for pagination
LimitintyesNumber of list elements to be returned
Hashint64yesHash used for caching, for more info click here

Returns​

MessagesSavedDialogsClass

References​