Skip to main content

Get instance settings structure

Gets the structure template for instance settings

Function GetInstanceSettingsStructure(Val Clear = False) Export

ParameterCLI optionTypeRequiredDescription
Clear--emptyBooleanTrue > structure with empty valuse, False > field descriptions at values
Returns

Structure Of KeyAndValue - Structure of instance settings

1C:Enterprise/OneScript code example
Result = OPI_GreenMax.GetInstanceSettingsStructure();
oint greenmax GetInstanceSettingsStructure \
--empty true
Result
{
"webhookUrl": "<URL for notification sending>",
"webhookUrlToken": "***",
"delaySendMessagesMilliseconds": "<message sending interval in milliseconds>",
"markIncomingMessagesReaded": "<mark incoming messages as read: yes, no>",
"markIncomingMessagesReadedOnReply": "<mark incoming messages as read when sending a message to chat: yes, no>",
"outgoingWebhook": "<receive notifications about the send/deliver/read status of outgoing messages: yes, no>",
"outgoingMessageWebhook": "<receive notifications of messages sent from phone: yes, no>",
"outgoingAPIMessageWebhook": "***",
"stateWebhook": "<receive notifications about changes in the authorization state of the instance: yes, no>",
"incomingWebhook": "<receive notifications of incoming messages and files: yes, no>"
}