Skip to main content

stories.getPeerStories

Fetch the full active story list of a specific peer.

func (c *Client) StoriesGetPeerStories(ctx context.Context, peer InputPeerClass) (*StoriesPeerStories, error)

Calling this method

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

res, err := api.StoriesGetPeerStories(ctx, peer)
if err != nil {
return err
}
_ = res // *StoriesPeerStories
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer whose stories should be fetched

Returns

*StoriesPeerStories

Possible errors

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.

References