premium.ApplyBoost

class pyrogram.raw.functions.premium.ApplyBoost

Apply one or more boosts » to a peer.

Details:
  • Layer: 223

  • ID: 6B7DA746

Parameters:
  • peer (InputPeer) – The peer to boost.

  • slots (List of int 32-bit, optional) – Which boost slots to assign to this peer.

Returns:

premium.MyBoosts

TL Schema

premium.applyBoost#6b7da746
flags:#
slots:flags.0?Vector<int>
peer:InputPeer

= premium.MyBoosts

Parameter Tree

ApplyBoost
├── slotsVector < int > (optional)
└── peerInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    ApplyBoost(
        slots=[0],
        peer=await app.resolve_peer(chat_id),
    )
)