premium.ApplyBoost
Apply one or more boosts » to a peer.
- Details:
Layer:
223ID:
6B7DA746
peer (
InputPeer) – The peer to boost.slots (List of
int32-bit, optional) – Which boost slots to assign to this peer.
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├──
InputPeerChannel│ ├── 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│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
ApplyBoost(
slots=[0],
peer=await app.resolve_peer(chat_id),
)
)