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
| Name | Type | Required | Description |
|---|---|---|---|
FolderPeers | []InputFolderPeer | yes | New peer list |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 400 | FOLDER_ID_INVALID | Invalid folder ID. |
References
- Official documentation
- Generated Go reference
- TL definition:
folders.editPeerFolders#6847d0ab