Skip to main content

stories.getAlbums

Get story albums created by a peer.

func (c *Client) StoriesGetAlbums(ctx context.Context, request *StoriesGetAlbumsRequest) (StoriesAlbumsClass, error)

Calling this method

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

res, err := api.StoriesGetAlbums(ctx, &tg.StoriesGetAlbumsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // StoriesAlbumsClass
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesThe peer.
Hashint64yesThe hash from a previously returned stories.albums, to avoid returning any results if they haven't changed.

Returns

StoriesAlbumsClass

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References