payments.getStarsSubscriptions
Obtain a list of active, expired or cancelled Telegram Star subscriptions ».
func (c *Client) PaymentsGetStarsSubscriptions(ctx context.Context, request *PaymentsGetStarsSubscriptionsRequest) (*PaymentsStarsStatus, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetStarsSubscriptions(ctx, &tg.PaymentsGetStarsSubscriptionsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PaymentsStarsStatus
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
MissingBalance | bool | — | Whether to return only subscriptions expired due to an excessively low Telegram Star balance. |
Peer | InputPeerClass | yes | Always pass inputPeerSelf. |
Offset | string | yes | Offset for pagination, taken from payments.starsStatus.subscriptions_next_offset. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getStarsSubscriptions#32512c5