SequenceFlow_0bggtcb
SequenceFlow_17v8rff
SequenceFlow_06whc1e
SequenceFlow_006ovoy
https://api.telegram.org/bot!!!your_token!!!/sendMessage
POST
application/json
var
text="Команди:\n/poll опитування\n/end для завершення";
var obj={chat_id: chat_id,text:text};
JSON.stringify(obj);
http-connector
SequenceFlow_0r4xvy1
SequenceFlow_1sh01hq
SequenceFlow_006ovoy
SequenceFlow_0ad448a
SequenceFlow_0v09t8l
SequenceFlow_118zys8
${ data.message !=null && data.message.text=="/end" }
https://api.telegram.org/bot!!!your_token!!!/sendMessage
POST
application/json
var
text="До побачення, для початку натисніть /start";
var obj={chat_id: chat_id,text:text};
JSON.stringify(obj);
http-connector
SequenceFlow_0ad448a
SequenceFlow_07vhuzi
SequenceFlow_17v8rff
${ data.message !=null && data.message.text=="/poll" }
SequenceFlow_1sucde5
SequenceFlow_067fkuu
SequenceFlow_07c17pw
https://api.telegram.org/bot!!!your_token!!!/sendMessage
POST
application/json
var
text="Вибрано Yes";
var obj={chat_id: chat_id,text:text};
JSON.stringify(obj);
http-connector
SequenceFlow_1gsac0g
SequenceFlow_0805ytd
https://api.telegram.org/bot!!!your_token!!!/sendMessage
POST
application/json
var
text="Вибрано No";
var obj={chat_id: chat_id,text:text};
JSON.stringify(obj);
http-connector
SequenceFlow_1gw9a0b
SequenceFlow_106jldw
${ data.data=="no" }
SequenceFlow_0bggtcb
SequenceFlow_0r4xvy1
data.message.chat.id;
https://api.telegram.org/bot!!!your_token!!!/deleteMessage
POST
application/json
var
text="Вибрано No";
var obj={chat_id: chat_id,message_id:message_id};
JSON.stringify(obj);
http-connector
SequenceFlow_0ipwjiy
SequenceFlow_067fkuu
SequenceFlow_1sqoci1
SequenceFlow_0805ytd
SequenceFlow_106jldw
SequenceFlow_0dsjd1x
SequenceFlow_07c17pw
SequenceFlow_1gw9a0b
SequenceFlow_1sqoci1
SequenceFlow_1gsac0g
${ data.callback_query!=null }
https://api.telegram.org/bot!!!your_token!!!/sendMessage
POST
application/json
var
text="Опитування так/ні";
var obj={chat_id: chat_id,text:text,
reply_markup:{inline_keyboard:[[{text:"Yes",callback_data:"test-bot:"+execution.getBusinessKey()+":yes"}
,{text:"No",callback_data:"test-bot:"+execution.getBusinessKey()+":no"}]]}};
JSON.stringify(obj);
S(connector.getVariable("response")).prop("result").prop("message_id").value();
http-connector
SequenceFlow_0v09t8l
SequenceFlow_1tre0xf
SequenceFlow_02il4i6
SequenceFlow_1sucde5
SequenceFlow_0cxryrs
SequenceFlow_16n8u1r
SequenceFlow_06whc1e
SequenceFlow_1sh01hq
SequenceFlow_118zys8
SequenceFlow_0dsjd1x
SequenceFlow_0cxryrs
SequenceFlow_16n8u1r
SequenceFlow_07vhuzi
PT15M
SequenceFlow_1tre0xf
SequenceFlow_02il4i6
SequenceFlow_07umrvx
SequenceFlow_07umrvx
SequenceFlow_0ipwjiy
PT10M
${ data.data=="yes" }