Layer 224
PaymentsSendStarGiftOffer
Send a star gift offer to a user
method
payments.sendStarGiftOffer#8fb86b41 flags:# peer:InputPeer slug:string price:StarsAmount duration:int random_id:long allow_paid_stars:flags.0?long = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Recipient peer |
| Slug | string | Gift slug |
| Price | StarsAmount | Gift price |
| Duration | int | Offer duration |
| RandomId | long | Random ID |
| AllowPaidStars | flags.0?long | Optional allowed paid stars |
Returns
UpdatesGogram Example
// PaymentsSendStarGiftOffer - using Params struct result, err := client.PaymentsSendStarGiftOffer(&tg.PaymentsSendStarGiftOfferParams{ Peer: &tg.InputPeerUser{UserID: int64(777000)}, Slug: "Hello, World!", Price: &tg.StarsAmount{}, Duration: 42, RandomId: int64(1234567890), // Optional fields: // AllowPaidStars: int64(1234567890), }) if err != nil { // handle error } // result is *tg.Updates