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 a3daa909
authored
Oct 31, 2022
by
softwhiskey8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
объединенил функция отправки сообщения в лс и в канал в одну ноду
1 parent
2faa47ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/main.dsl
index.js
app/main.dsl
View file @
a3daa90
...
...
@@ -138,7 +138,8 @@ node tg
positive: do
{
set $channel_type = "Telegram";
external sendTelegramChannel($channel_type, "");
external sendTelegramChannel($channel_type, ""); //отправка уведомления в канал
external sendTelegram(); //отправка личного сообщения
}
}
}
...
...
@@ -148,7 +149,6 @@ node yes_tg
do
{
$cjm.push("yes_tg");
external sendTelegram();
goto yes_whatsapp;
}
transitions
...
...
index.js
View file @
a3daa90
...
...
@@ -151,7 +151,7 @@ async function main() {
//var cmd = `cd E:/work/projects2/telegram-channel-sender/; dotnet telegram-channel-sender.dll 3 79112349232 ${args['channel_type']}`;
//let cmd = String.raw`cd E:/work/projects2/telegram-channel-sender/
//dotnet telegram-channel-sender.dll 3 79112349232 ${args['channel_type']}`;
var
cmd
=
`cd /servers/constructor/htdocs/api/ && php telegram-channel-sender.php
3
${
process
.
argv
[
2
]}
${
args
[
'channel_type'
]}
`
;
var
cmd
=
`cd /servers/constructor/htdocs/api/ && php telegram-channel-sender.php
${
events_owner
}
${
process
.
argv
[
2
]}
${
args
[
'channel_type'
]}
`
;
exec
(
cmd
,
(
error
,
stdout
,
stderr
)
=>
{
if
(
error
)
{
console
.
error
(
`error:
${
error
.
message
}
`
);
...
...
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