premium.ApplyBoost

class pyrogram.raw.functions.premium.ApplyBoost

Apply one or more boosts » to a peer.

Details:
  • Layer: 227

  • 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
├── slots → Vector < int > (optional)
└── peer → InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

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