stories.reorderAlbums
Reorder story albums on a profile ».
func (c *Client) StoriesReorderAlbums(ctx context.Context, request *StoriesReorderAlbumsRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StoriesReorderAlbums(ctx, &tg.StoriesReorderAlbumsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the albums are located. |
Order | []int | yes | New order of the albums. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.reorderAlbums#8535fbd9