Layer 227
StarGiftAuctionAcquiredGiftObj
Describes a gift that the current user won in an auction.
constructor
starGiftAuctionAcquiredGift#42b00348 flags:# name_hidden:flags.0?true peer:Peer date:int bid_amount:long round:int pos:int message:flags.1?TextWithEntities gift_num:flags.2?int = StarGiftAuctionAcquiredGift;
Parameters
| Name | Type | Description |
|---|---|---|
| NameHidden | flags .0? true | If set, your name will be hidden if the destination peer decides to display the gift on their profile (they will still see that you sent the gift). |
| Peer | Peer | The peer that received the gift. |
| Date | int | When was the gift obtained. |
| BidAmount | long | The amount in Telegram Stars that was bid in order to obtain the gift. |
| Round | int | The round number where the gift was obtained. |
| Pos | int | The position of the gift in the auction. |
| Message | flags .1? TextWithEntities | Optional message that attached with the gift, passed when making the bid. |
| GiftNum | flags .2? int | If set, the collectible number of the won gift among all collectibles of the same type. This field is optional because only auction collectibles won before this field was introduced in the API will not have this flag set. |
Returns
StarGiftAuctionAcquiredGiftGogram Example
// Creating StarGiftAuctionAcquiredGiftObj constructor obj := &tg.StarGiftAuctionAcquiredGiftObj{ NameHidden: nil, Peer: &tg.Peer{}, Date: 42, BidAmount: int64(1234567890), Round: 42, Pos: 42, // ... more required fields }