Get group settings structure
Returns the structure of group chat settings fields
- Parameters
- Advanced call ?
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
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Result = OPI_GreenMax.GetGroupSettingsStructure();
- Bash
- CMD/Bat
oint greenmax GetGroupSettingsStructure \
--empty true
oint greenmax GetGroupSettingsStructure ^
--empty true
Result
{
"allowParticipantsEditGroupSettings": "<allow members to change group settings>",
"allowParticipantsPinMessages": "<allow members to pin messages>",
"allowParticipantsAddMembers": "<allow members to add new participants>"
}