channels.SetBoostsToUnblockRestrictions

class pyrogram.raw.functions.channels.SetBoostsToUnblockRestrictions

Admins with ban_users admin rights » may allow users that apply a certain number of booosts » to the group to bypass slow mode » and other » supergroup restrictions, see here » for more info.

Details:
  • Layer: 223

  • ID: AD399CEE

Parameters:
  • channel (InputChannel) – The supergroup.

  • boosts (int 32-bit) – The number of required boosts (1-8, 0 to disable).

Returns:

Updates

TL Schema

channels.setBoostsToUnblockRestrictions#ad399cee
channel:InputChannel
boosts:int

= Updates

Parameter Tree

SetBoostsToUnblockRestrictions
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── boostsint

Example

await app.invoke(
    SetBoostsToUnblockRestrictions(
        channel=await app.resolve_channel(chat_id),
        boosts=0,
    )
)