Layer 227
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

MessageAction

Gogram Example

// Creating MessageActionStarGiftPurchaseOffer constructor
obj := &tg.MessageActionStarGiftPurchaseOffer{
    Accepted: nil,
    Declined: nil,
    Gift: &tg.StarGift{},
    Price: &tg.StarsAmount{},
    ExpiresAt: 42,
}