Skip to main content

stats.getStoryPublicForwards

Obtain forwards of a story as a message to public chats and reposts by public channels.

func (c *Client) StatsGetStoryPublicForwards(ctx context.Context, request *StatsGetStoryPublicForwardsRequest) (*StatsPublicForwards, error)

Calling this method

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

res, err := api.StatsGetStoryPublicForwards(ctx, &tg.StatsGetStoryPublicForwardsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *StatsPublicForwards
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer where the story was originally posted
IDintyesStory ID
OffsetstringyesOffset for pagination, from stats.PublicForwards.next_offset.
LimitintyesMaximum number of results to return, see pagination

Returns

*StatsPublicForwards

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References