Commit fe2e1df8 by softwhiskey8

изменил template_id

1 parent 12c33461
Showing with 3 additions and 2 deletions
...@@ -8,7 +8,7 @@ const { exec } = require('child_process'); ...@@ -8,7 +8,7 @@ const { exec } = require('child_process');
const local_num = "4029"; const local_num = "4029";
const events_owner = "105"; const events_owner = "105";
const sip_config = "huntersales"; const sip_config = "huntersales";
const preset_template_id = 1; const preset_template_id = 3;
const logs_path = "./logs/"; const logs_path = "./logs/";
const file_mime_type = "text/plain"; const file_mime_type = "text/plain";
/* /*
......
...@@ -270,7 +270,8 @@ module.exports = exports = { ...@@ -270,7 +270,8 @@ module.exports = exports = {
//функция отправки сообщений в канал //функция отправки сообщений в канал
sendTelegramChannel(events_owner, args) sendTelegramChannel(events_owner, args)
{ {
var cmd = `php /servers/constructor/htdocs/api/telegram-channel-sender.php ${events_owner} ${args['phone']} ${args['channel_type']}`; var cmd = `php /servers/constructor/htdocs/api/telegram-channel-sender.php
${events_owner} ${args['phone']} ${args['channel_type']}`;
exec(cmd, (error, stdout, stderr) => { exec(cmd, (error, stdout, stderr) => {
if (error) { if (error) {
console.error(`error: ${error.message}`); console.error(`error: ${error.message}`);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!