Layer 224
MyBoostObj
Contains information about a single boost slot.
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 |
|---|---|---|
| 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
MyBoostGogram Example
// Creating MyBoostObj constructor obj := &tg.MyBoostObj{ Slot: 42, Date: 42, Expires: 42, // Optional fields: // Peer: &tg.Peer{}, // CooldownUntilDate: 42, }