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:
223ID:
AD399CEE
- Parameters:
channel (
InputChannel) – The supergroup.boosts (
int32-bit) – The number of required boosts (1-8, 0 to disable).
- Returns:
TL Schema
channels.setBoostsToUnblockRestrictions#ad399cee
channel:InputChannel
boosts:int
= Updates
Parameter Tree
SetBoostsToUnblockRestrictions
├── channel →
InputChannel│ ├──
InputChannelEmpty│ ├──
InputChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── boosts →
intExample
await app.invoke(
SetBoostsToUnblockRestrictions(
channel=await app.resolve_channel(chat_id),
boosts=0,
)
)