Layer 227
constructor
payments.starGiftAuctionState#6b39f4ec gift:StarGift state:StarGiftAuctionState user_state:StarGiftAuctionUserState timeout:int users:Vector<User> chats:Vector<Chat> = payments.StarGiftAuctionState;

Parameters

Name Type Description
Gift StarGift The gift currently being distributed in the auction.
State StarGiftAuctionState Auction state.
UserState StarGiftAuctionUserState Auction state related to the current user (i. e. info about placed bids, won gifts, and so on).
Timeout int Re-invoke the payments. get Star Gift Auction State method after timeout seconds to keep receiving auction updates, see here for more info on the full flow.
Users Vector < User > Mentioned users
Chats Vector < Chat > Mentioned chats

Gogram Example

// Creating PaymentsStarGiftAuctionStateObj constructor
obj := &tg.PaymentsStarGiftAuctionStateObj{
    Gift: &tg.StarGift{},
    State: &tg.StarGiftAuctionState{},
    UserState: &tg.StarGiftAuctionUserState{},
    Timeout: 42,
    Users: &tg.VectorUser{},
    Chats: &tg.VectorChat{},
}