Viber 聊天机器人键盘未读消息

时间:2021-04-23 13:34:23

标签: chatbot viber viber-api viber-bot

我正在开发 Viber 聊天机器人,但已经遇到了一些问题。 我正在创建 JSON 键盘按钮,但每次单击每个按钮时,Viber 都会增加未读消息计数器。 例如,每次单击按钮 A 时,未读消息都会显示 1、2、3、... 我已经在使用参数:Silent => true,


    {
      "auth_token": "AUTH-TOKEN-HERE",
      "receiver": "RECEIVERID-HERE",
      "min_api_version": 8,
      "keyboard": {
        "Type": "keyboard",
        "Buttons": [
          {
            "Columns": 1,
            "Rows": 1,
            "BgColor": "#c52515",
            "ActionType": "reply",
            "ActionBody": "start",
            "Silent": "true",
            "Image": "XXXXXX"
          },
          {
            "Columns": 2,
            "Rows": 2,
            "BgColor": "#9a1e12",
            "ActionType": "reply",
            "ActionBody": "B",
            "Text": "",
            "TextVAlign": "middle",
            "TextHAlign": "center",
            "TextSize": "regular",
            "Silent": "true",
            "Image": "XXXXXX"
          },
          {
            "Columns": 4,
            "Rows": 2,
            "BgColor": "#9a1e12",
            "ActionType": "reply",
            "ActionBody": "A",
            "Text": "<font color=\"#ffffff\"><b>INFO</b></font>",
            "TextVAlign": "middle",
            "TextHAlign": "center",
            "TextSize": "large",
            "Silent": "true"
          }
        ]
      }
    }

对类似问题有任何想法或经验吗?

0 个答案:

没有答案