set Chat Permissions
suspend fun TelegramBotApiClient.setChatPermissions(requestBody: SetChatPermissionsRequest): TelegramResponse<Boolean>
Content copied to clipboard
Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights. Returns True on success.
suspend fun TelegramBotApiClient.setChatPermissions(chatId: Int, permissions: ChatPermissions): TelegramResponse<Boolean>
Content copied to clipboard
Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights. Returns True on success.
Parameters
chatId
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
permissions
New default chat permissions