channels.toggleParticipantsHidden

Hide or display the participants list in a supergroup.

The supergroup must have at least hidden_members_group_size_min participants in order to use this method, as specified by the client configuration parameters ».

 Method schema is available as of layer 151. Switch »

Parameters

Name Type Description
channel InputChannel Supergroup ID
enabled Bool If true, will hide the participants list; otherwise will unhide it.

Result

Updates

Possible errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHAT_ID_INVALID The provided chat id is invalid.
400 CHAT_NOT_MODIFIED No changes were made to chat information because the new information you passed is identical to the current information.
400 PARTICIPANTS_TOO_FEW Not enough participants.

Related pages

Channels, supergroups, gigagroups and basic groups

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.

Client configuration

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.