MyBoost

class pyrogram.raw.types.MyBoost

Contains information about a single boost slot ».

Constructor of MyBoost.

Details:
  • Layer: 223

  • ID: C448415C

Parameters:
  • slot (int 32-bit) – Boost slot ID »

  • date (int 32-bit) – When (unixtime) we started boosting the peer, 0 otherwise.

  • expires (int 32-bit) – Indicates the (unixtime) expiration date of the boost in peer (0 if peer is not set).

  • peer (Peer, optional) – 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.

  • cooldown_until_date (int 32-bit, optional) – If peer is set, indicates the (unixtime) date after which this boost can be reassigned to another channel.

TL Schema

myBoost#c448415c
flags:#
slot:int
peer:flags.0?Peer
date:int
expires:int
cooldown_until_date:flags.1?int

= MyBoost

Parameter Tree

MyBoost
├── slotint
├── peerPeer (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── dateint
├── expiresint
└── cooldown_until_dateint (optional)

Example

MyBoost(
    slot=0,
    date=0,
    expires=0,
)