Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Alexander
/
alex-hunter-sales-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 672513bb
authored
Oct 13, 2022
by
softwhiskey8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
телеграмм сообщения тест
1 parent
dcc5c414
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
app/main.dsl
index.js
app/main.dsl
View file @
672513b
...
...
@@ -72,7 +72,7 @@ node caller_id
#waitForSpeech(1000);
digression disable { conference_time, zoom_cost };
//
external sendTelegram();
external sendTelegram();
// Запоминаем временной штамп перед самой первой репликой
set $conversation_begin = external time_stamp();
...
...
index.js
View file @
672513b
...
...
@@ -3,6 +3,7 @@ const AudioResources = require("./customTts.js");
const
fs
=
require
(
"fs"
);
const
sys
=
require
(
'child_process'
);
const
shared
=
require
(
"./shared"
);
const
{
exec
}
=
require
(
'child_process'
);
const
local_num
=
"4029"
;
const
events_owner
=
"105"
;
...
...
@@ -129,13 +130,12 @@ async function main() {
app
.
setExternal
(
"countWords"
,
(
args
)
=>
{
return
args
.
message
.
split
(
' '
).
length
;
});
app
.
setExternal
(
"sendTelegram"
,
(
args
)
=>
{
var
exec
=
require
[
'child_process'
].
exec
;
var
cmd
=
`cd /servers/constructor/htdocs/api/; php telegram-send.php `
;
var
tmp_json
=
`{webinar:\"Как продавать на маркетплейсах в 2022\",date:\"11 июля\",promocode:\"SAMLOH\"}`
;
tmp_json
=
JSON
.
strongify
(
tmp_json
);
cmd
+=
`
${
events_owner
}
${
template_id
}
${
abonent_phone
}
empty empty empty
${
tmp_json
}
`
;
cmd
+=
`
${
events_owner
}
${
preset_template_id
}
${
process
.
argv
[
2
]
}
empty empty empty
${
tmp_json
}
`
;
exec
(
cmd
);
});
await
app
.
start
();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment