如何使按钮的角变圆?Viber机器人


{
"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
}
]
}}

我正试图通过一个参数";Frame.CornerRadius":"4〃;,但它不是那样工作的,按钮仍然是矩形

使用富媒体消息类型并在其中添加键盘。示例:

{
"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>",
}
],
}

尝试这个

{
"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"
}]
}
}

相关内容

  • 没有找到相关文章

最新更新