Please enable JavaScript.
Coggle requires JavaScript to display documents.
🎡 Viber Carousel (кастомізація карточок через JSON) (start (calc…
🎡 Viber Carousel (кастомізація карточок через JSON)
start
calc
%actionBodyBuyFirst=base64_encode('nid=&buy=first')
calc
%actionBodyBuySecond=base64_encode('nid=&buy=second')
%buy=null
$SYS.POST
X-Viber-Auth-Token: %sys.bottoken
https://chatapi.viber.com/pa/send_message
%%wait
else
You resign.
#
?buy=first
//Sure
#
You have bought 1 item, run again?
?buy=second
//Sure
#
You have bought 2 item, run again?
QUESTION
%carouselJson
%carouselJson={
"receiver":"%sys.extuid",
"type":"rich_media",
"min_api_version":2,
"rich_media":{
"Type":"rich_media",
"ButtonsGroupColumns":6,
"ButtonsGroupRows":7,
"BgColor":"#FFFFFF",
"Buttons":[
{
"Columns":6,
"Rows":3,
"ActionType":"open-url",
"ActionBody":"
https://pipe.bot
",
"Image":"
https://pipe.bot/img/d/m/bb/3c5a5b.jpg
"
},
{
"Columns":6,
"Rows":2,
"Text":"<font color=#323232><b>Dyna Compressor</b></font><font color=\"#777777\"><br>by MXR </font><font color=\"#009900\">$17.99</font>",
"ActionType":"open-url",
"ActionBody":"
https://pipe.bot
",
"TextSize":"medium",
"TextVAlign":"middle",
"TextHAlign":"left"
},
{
"Columns":6,
"Rows":1,
"ActionType":"reply",
"ActionBody":"%actionBodyBuyFirst",
"Text":"<font color=\"#ffffff\">BUY NOW</font>",
"TextSize":"large",
"TextVAlign":"middle",
"TextHAlign":"middle",
"Image":"
https://pipe.bot/img/d/m/bb/b9dfcf.png
"
},
{
"Columns":6,
"Rows":1,
"ActionType":"reply",
"ActionBody":"%actionBodyBuyFirst",
"Text":"<font color=\"#8367db\">MORE DETAILS</font>",
"TextSize":"small",
"TextVAlign":"middle",
"TextHAlign":"middle"
},
{
"Columns":6,
"Rows":3,
"ActionType":"open-url",
"ActionBody":"
https://pipe.bot
",
"Image":"
https://pipe.bot/img/d/m/fd/6f1040.jpg
"
},
{
"Columns":6,
"Rows":2,
"Text":"<font color=#323232><b>Green Rhino Overdrive</b></font><font color=\"#777777\"><br>by Jim Dunlop </font><font color=\"#009900\">$10.99</font>",
"ActionType":"open-url",
"ActionBody":"
https://pipe.bot
",
"TextSize":"medium",
"TextVAlign":"middle",
"TextHAlign":"left"
},
{
"Columns":6,
"Rows":1,
"ActionType":"reply",
"ActionBody":"%actionBodyBuySecond",
"Text":"<font color=\"#ffffff\">BUY NOW</font>",
"TextSize":"large",
"TextVAlign":"middle",
"TextHAlign":"middle",
"Image":"
https://pipe.bot/img/d/m/bb/b9dfcf.png
"
},
{
"Columns":6,
"Rows":1,
"ActionType":"reply",
"ActionBody":"%actionBodyBuySecond",
"Text":"<font color=\"#8367db\">MORE DETAILS</font>",
"TextSize":"small",
"TextVAlign":"middle",
"TextHAlign":"middle"
}
]
}
}