payments.resolveStarGiftOffer
Accept or decline a previously received collectible gift purchase offer », see here » for the full flow.
func (c *Client) PaymentsResolveStarGiftOffer(ctx context.Context, request *PaymentsResolveStarGiftOfferRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsResolveStarGiftOffer(ctx, &tg.PaymentsResolveStarGiftOfferRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Decline | bool | — | If set, declines the offer; otherwise, accepts it. |
OfferMsgID | int | yes | Identifier of the messageActionStarGiftPurchaseOffer service message describing the offer to act upon. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.resolveStarGiftOffer#e9ce781c