Reputation: 21
{
"viber": {
"type": "keyboard",
"inputFieldState": "hidden",
"buttons": [
{
"ActionBody": "/test",
"ActionType": "reply",
"BgColor": "#FF0000",
"Frame.CornerRadius": "4",
"Columns": 6,
"Rows": 1,
"Text": "<b><font color=\"#FFFFFF\">text</font></b>",
"TextHAlign": "center",
"TextSize": "regular",
"TextVAlign": "middle",
"Silent": false
}
]
}}
I'm trying to do it through a parameter "Frame.CornerRadius": "4", but it doesn't work like that, the buttons remain rectangular
Upvotes: 2
Views: 442
Reputation: 1
try this
{
"receiver":"OSpQxHz/54fXXjlrLEvDWg==",
"min_api_version":6,
"type":"text",
"text":"Hello world",
"keyboard":{
"DefaultHeight": true,
"BgColor": "#FFFFFF",
"Buttons": [{
"Frame": {
"BorderWidth": "01",
"BorderColor": "#51b46d",
"CornerRadius" :"9"
},
"Columns": 6,
"Rows": 1,
"BgColor": "#2db9b9",
"ActionBody": "www.tut.by",
"Image": "www.tut.by/img.jpg",
"Text": "Key text",
"TextVAlign": "middle",
"TextHAlign": "center",
"TextOpacity": 60,
"TextSize": "regular"
}]
}
}
Upvotes: 0
Reputation: 6355
Use Rich Media message type and add a Keyboard there. Example:
{
"Type": "rich_media",
"BgColor": "#FF0000",
"ButtonsGroupRows": 6,
"ButtonsGroupColumns": 1,
"Buttons": [
{
"ActionType": "reply",
"ActionBody": "/test",
"BgColor": "#FF0000",
"Columns": 6,
"Rows": 1,
"Text": "<b><font color=\"#FFFFFF\">text</font></b>",
}
],
}
Upvotes: 0