You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
43 lines
1.3 KiB
Plaintext
Vendored
43 lines
1.3 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 11
|
|
description: Get group settings structure and other functions to work with GreenMax in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, GreenMax]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get group settings structure
|
|
Returns the structure of group chat settings fields
|
|
|
|
|
|
|
|
`Function GetGroupSettingsStructure(Val Clear = False, Val AsMap = False) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
|
|
| AsMap | --map | Boolean | ✖ | True > returns settings fields as a mapping |
|
|
|
|
|
|
Returns: Structure Of KeyAndValue - Fields structure
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Result = OPI_GreenMax.GetGroupSettingsStructure();
|
|
```
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"allowParticipantsEditGroupSettings": "<allow members to change group settings>",
|
|
"allowParticipantsPinMessages": "<allow members to pin messages>",
|
|
"allowParticipantsAddMembers": "<allow members to add new participants>"
|
|
}
|
|
```
|