Please enable JavaScript.
Coggle requires JavaScript to display documents.
BProf Promo Push RESERVE! (?sys.username=Rostik Tuchak (start (calc…
BProf Promo Push RESERVE!
?sys.username=Rostik Tuchak
start
calc
%promoId=%promoId-2
next
%promoObject=$.values[%promoId] %bot.table_json
%image=$[2] %promoObject
%title=$[4] %promoObject
%url=$[3] %promoObject
%subtitle=$[5] %promoObject
else
?type=Пост з кнопками
next
calc
%actionBodyBuy2=base64_encode('nid=&promoIdOrderSent=%promoIdForAction')
1 more item...
calc
%actionBodyBuy1=base64_encode('nid=&promoIdSent=%promoIdForAction')
calc
%promoIdForAction=%promoId+2
replace
/"/ %title
%textForURL=Здравствуйте, меня интересует: %title
calc
%textForURL=urlencode('%textForURL')
calc
%textForURL=str_replace('+','%20','%textForURL')
%ActionBodyURL=viber://pa?chatURI=beautyprofmanager&text=%textForURL
else
...%image
...%subtitle
#
?type=Пост з відео
next
%carouselJson={
"receiver":"%sys.extuid",
"min_api_version":1,
"sender":{
"name":"Чат Бот Beauty Prof"
},
"tracking_data":"tracking data",
"type":"url",
"media":"%image"}
1 more item...
?type=Пост карусель
next
calc
%actionBodyBuy2=base64_encode('nid=&promoIdOrderSent=%promoIdForAction')
1 more item...
calc
%actionBodyBuy1=base64_encode('nid=&promoIdSent=%promoIdForAction')
calc
%promoIdForAction=%promoId+2
replace
/"/ %title
%textForURL=Здравствуйте, меня интересует: %title
calc
%textForURL=urlencode('%textForURL')
calc
%textForURL=str_replace('+','%20','%textForURL')
%ActionBodyURL=viber://pa?chatURI=beautyprofmanager&text=%textForURL
...тут 2
?lastPromoId=%promoId
#
%type=$[6] %promoObject
%itemsAmount=$[8] %promoObject
...Все ок
%promoId=$..var2 %bot.varNew
else
end
...%itemsAmount