stories.updateAlbum
Rename a story albums », or add, delete or reorder stories in it.
func (c *Client) StoriesUpdateAlbum(ctx context.Context, request *StoriesUpdateAlbumRequest) (*StoryAlbum, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesUpdateAlbum(ctx, &tg.StoriesUpdateAlbumRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *StoryAlbum
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the album is posted. |
AlbumID | int | yes | Album ID. |
Title | string | — | New album title. |
DeleteStories | []int | — | If set, deletes the specified stories from the album. |
AddStories | []int | — | If set, adds the specified stories to the album. |
Order | []int | — | If set, reorders the stories in the album by their IDs. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.updateAlbum#5e5259b6