payments.fulfillStarsSubscription
Re-join a private channel associated to an active Telegram Star subscription ».
func (c *Client) PaymentsFulfillStarsSubscription(ctx context.Context, request *PaymentsFulfillStarsSubscriptionRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsFulfillStarsSubscription(ctx, &tg.PaymentsFulfillStarsSubscriptionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Always pass inputPeerSelf. |
SubscriptionID | string | yes | ID of the subscription. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.fulfillStarsSubscription#cc5bebb3