Layer 227
MessageActionStarGiftPurchaseOffer
Contains an offer to purchase a collectible gift, see here for the full flow.
constructor
messageActionStarGiftPurchaseOffer#774278d4 flags:# accepted:flags.0?true declined:flags.1?true gift:StarGift price:StarsAmount expires_at:int = MessageAction;
Parameters
| Name | Type | Description |
|---|---|---|
| Accepted | flags .0? true | If set, the gift owner accepted this offer. |
| Declined | flags .1? true | If set, the gift owner declined this offer. |
| Gift | StarGift | The collectible gift the offer is about. |
| Price | StarsAmount | Offered price. |
| ExpiresAt | int | Offer expiration date (UNIX timestamp): if the owner doesn't act before this date, the offer will expire and the buyer will be refunded automatically. |
Returns
MessageActionGogram Example
// Creating MessageActionStarGiftPurchaseOffer constructor obj := &tg.MessageActionStarGiftPurchaseOffer{ Accepted: nil, Declined: nil, Gift: &tg.StarGift{}, Price: &tg.StarsAmount{}, ExpiresAt: 42, }