feat(automations): ctx.tasks.sendMessage — сообщение в чат задачи от Системы; userId в triggerData status_changed
This commit is contained in:
@@ -104,6 +104,10 @@ const ctx = {
|
||||
return callStorage('createTaskFieldValue', [{ taskId, fieldId: field.id, formId: task.formId, value: String(value) }]);
|
||||
}
|
||||
},
|
||||
// Сообщение в чат задачи от имени «Система» (messageType 'status_change', без уведомлений)
|
||||
sendMessage: function(taskId, message) {
|
||||
return callStorage('sendTaskMessageFromAutomation', [taskId, organizationId, String(message)]);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user