Layer 220
constructor
myBoost#c448415c flags:# slot:int peer:flags.0?Peer date:int expires:int cooldown_until_date:flags.1?int = MyBoost;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Slot int Boost slot ID
Peer flags.0?Peer If set, indicates this slot is currently occupied, i. e. we are boosting this peer. Note that we can assign multiple boost slots to the same peer.
Date int When (unixtime) we started boosting the peer, 0 otherwise.
Expires int Indicates the (unixtime) expiration date of the boost in peer ( 0 if peer is not set).
CooldownUntilDate flags.1?int If peer is set, indicates the (unixtime) date after which this boost can be reassigned to another channel.

Returns

MyBoost

Gogram Example

// Creating MyBoost constructor
obj := &tg.MyBoost{
    Slot: 0,
    Date: 0,
    Expires: 0,

    // Optional fields:
    // Peer: &tg.Peer{},
    // CooldownUntilDate: 0,
}