Skip to main content

messages.reorderPinnedDialogs

Reorder pinned dialogs

func (c *Client) MessagesReorderPinnedDialogs(ctx context.Context, request *MessagesReorderPinnedDialogsRequest) (bool, error)

Calling this method​

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesReorderPinnedDialogs(ctx, &tg.MessagesReorderPinnedDialogsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters​

NameTypeRequiredDescription
Forcebool—If set, dialogs pinned server-side but not present in the order field will be unpinned.
FolderIDintyesPeer folder ID, for more info click here
Order[]InputDialogPeerClassyesNew dialog order

Returns​

bool

Possible errors​

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References​