Layer 220
constructor
boost#4b3e14d6 flags:# gift:flags.1?true giveaway:flags.2?true unclaimed:flags.3?true id:string user_id:flags.0?long giveaway_msg_id:flags.2?int date:int expires:int used_gift_slug:flags.4?string multiplier:flags.5?int stars:flags.6?long = Boost;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Gift flags.1?true Whether this boost was applied because the channel/supergroup directly gifted a subscription to the user.
Giveaway flags.2?true Whether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup.
Unclaimed flags.3?true If set, the user hasn't yet invoked payments. apply Gift Code to claim a subscription gifted directly or in a giveaway by the channel.
Id string Unique ID for this set of boosts.
UserId flags.0?long ID of the user that applied the boost.
GiveawayMsgId flags.2?int The message ID of the giveaway
Date int When was the boost applied
Expires int When does the boost expire
UsedGiftSlug flags.4?string The created Telegram Premium gift code, only set if either gift or giveaway are set AND it is either a gift code for the currently logged in user or if it was already claimed.
Multiplier flags.5?int If set, this boost counts as multiplier boosts, otherwise it counts as a single boost.
Stars flags.6?long Number of Telegram Stars distributed among the winners of the giveaway.

Returns

Boost

Gogram Example

// Creating Boost constructor
obj := &tg.Boost{
    Id: "...",
    Date: 0,
    Expires: 0,

    // Optional fields:
    // Gift: true,
    // Giveaway: true,
    // Unclaimed: true,
    // UserId: int64(0),
    // ... more optional fields
}