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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer where the story was originally posted |
ID | int | yes | Story ID |
Offset | string | yes | Offset for pagination, from stats.PublicForwards.next_offset. |
Limit | int | yes | Maximum number of results to return, see pagination |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stats.getStoryPublicForwards#a6437ef6