Layer 220
method Users
stories.updateAlbum#5e5259b6 flags:# peer:InputPeer album_id:int title:flags.0?string delete_stories:flags.1?Vector<int> add_stories:flags.2?Vector<int> order:flags.3?Vector<int> = StoryAlbum;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Peer InputPeer Peer where the album is posted.
AlbumId int Album ID.
Title flags.0?string New album title.
DeleteStories Vector<int> If set, deletes the specified stories from the album.
AddStories Vector<int> If set, adds the specified stories to the album.
Order Vector<int> If set, reorders the stories in the album by their IDs.

Returns

StoryAlbum

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// StoriesUpdateAlbum - using Params struct
result, err := client.StoriesUpdateAlbum(&tg.StoriesUpdateAlbumParams{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},
    AlbumId: 0,

    // Optional fields:
    // Title: "...",
    // DeleteStories: []int{},
    // AddStories: []int{},
    // Order: []int{},
})
if err != nil {
    // handle error
}
// result is *tg.StoryAlbum