Skip to main content

folders.editPeerFolders

Edit peers in peer folder

func (c *Client) FoldersEditPeerFolders(ctx context.Context, folderpeers []InputFolderPeer) (UpdatesClass, error)

Calling this method​

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

res, err := api.FoldersEditPeerFolders(ctx, folderpeers)
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters​

NameTypeRequiredDescription
FolderPeers[]InputFolderPeeryesNew peer list

Returns​

UpdatesClass

Possible errors​

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400FOLDER_ID_INVALIDInvalid folder ID.

References​