premium.applyBoost #

Apply one or more boosts » to a peer.

Layer 223

premium.myBoosts#9ae228e2 my_boosts:Vector<MyBoost> chats:Vector<Chat> users:Vector<User> = premium.MyBoosts;
---functions---
premium.applyBoost#6b7da746 flags:# slots:flags.0?Vector<int> peer:InputPeer = premium.MyBoosts;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
slotsflags.0?Vector<int>Which boost slots to assign to this peer.
peerInputPeerThe peer to boost.

Result #

premium.MyBoosts

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOOSTS_EMPTYNo boost slots were specified.
400PEER_ID_INVALIDThe provided peer id is invalid.
400SLOTS_EMPTYThe specified slot list is empty.

Channel and supergroup boosts #

Telegram Premium users can grant their favorite channels and supergroups additional features like the ability to post stories by giving them boosts.