StarGiftAuctionUserState#

class pyrogram.raw.types.StarGiftAuctionUserState#

Contains information about the current user’s state in an auction. The bid_amount, bid_date, bid_peer and min_bid_amount flags of starGiftAuctionUserState will all be set if the user placed a bid in the auction.

Constructor of StarGiftAuctionUserState.

Details:
  • Layer: 225

  • ID: 2EEED1C4

Parameters:
  • acquired_count (int 32-bit) – Contains the number of gifts that were purchased so far in the auction by the current user.

  • returned (bool, optional) – If set, the placed bid was returned to the user, because it was outbid so much that it fell out of the top starGiftAuctionState.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.

  • bid_amount (int 64-bit, optional) – Contains the amount of the placed bid in Telegram Stars.

  • bid_date (int 32-bit, optional) – Contains a UNIX timestamp, indicating when the bid was placed.

  • min_bid_amount (int 64-bit, optional) – Contains the minumum allowed bid amount in Telegram Stars, if set overrides starGiftAuctionState.min_bid_amount for the current user.

  • bid_peer (Peer, optional) – Contains the peer that will receive the gift, if you end up winning this round