Skip to main content

Get group settings structure

Returns the structure of group chat settings fields

Function GetGroupSettingsStructure(Val Clear = False, Val AsMap = False) Export

ParameterCLI optionTypeRequiredDescription
Clear--emptyBooleanTrue > structure with empty valuse, False > field descriptions at values
AsMap--mapBooleanTrue > returns settings fields as a mapping
Returns

Structure Of KeyAndValue - Fields structure

1C:Enterprise/OneScript code example
Result = OPI_GreenMax.GetGroupSettingsStructure();
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>"
}