Layer 227
StarGiftAuctionUserStateObj
Contains information about the current user's state in an auction.
constructor
starGiftAuctionUserState#2eeed1c4 flags:# returned:flags.1?true bid_amount:flags.0?long bid_date:flags.0?int min_bid_amount:flags.0?long bid_peer:flags.0?Peer acquired_count:int = StarGiftAuctionUserState;
Parameters
| Name | Type | Description |
|---|---|---|
| Returned | flags .1? true | If set, the placed bid was returned to the user, because it was outbid so much that it fell out of the top star Gift Auction State. gifts_left positions, meaning that even if no new bids are placed, the user will never receive any gifts, so the bid was completely removed from the auction, and in order to participate again the user must manually make a new bid. |
| BidAmount | flags .0? long | Contains the amount of the placed bid in Telegram Stars. |
| BidDate | flags .0? int | Contains a UNIX timestamp, indicating when the bid was placed. |
| MinBidAmount | flags .0? long | Contains the minumum allowed bid amount in Telegram Stars, if set overrides star Gift Auction State. min_bid_amount for the current user. |
| BidPeer | flags .0? Peer | Contains the peer that will receive the gift, if you end up winning this round |
| AcquiredCount | int | Contains the number of gifts that were purchased so far in the auction by the current user. |
Returns
StarGiftAuctionUserStateGogram Example
// Creating StarGiftAuctionUserStateObj constructor obj := &tg.StarGiftAuctionUserStateObj{ Returned: nil, BidAmount: nil, BidDate: nil, MinBidAmount: nil, BidPeer: nil, AcquiredCount: 42, }