stats.loadAsyncGraph
Load channel statistics graph asynchronously
func (c *Client) StatsLoadAsyncGraph(ctx context.Context, request *StatsLoadAsyncGraphRequest) (StatsGraphClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StatsLoadAsyncGraph(ctx, &tg.StatsLoadAsyncGraphRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // StatsGraphClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Token | string | yes | Graph token from statsGraphAsync constructor |
X | int64 | — | Zoom value, if required |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GRAPH_EXPIRED_RELOAD | This graph has expired, please obtain a new graph token. |
| 400 | GRAPH_INVALID_RELOAD | Invalid graph token provided, please reload the stats and provide the updated token. |
| 400 | GRAPH_OUTDATED_RELOAD | The graph is outdated, please get a new async token using stats.getBroadcastStats. |
References
- Official documentation
- Generated Go reference
- TL definition:
stats.loadAsyncGraph#621d5fa0