小编Min*_*iDr的帖子

从 Viber 键盘按钮的图像中获取错误的图像

我正在使用 PHP 通过 Viber REST API 创建 Viber 机器人。我试图了解如何创建 Viber 的键盘设计集,但无济于事。如何让它看起来像 Viber 提供的键盘设计示例一样?

我的键盘设计

在此输入图像描述

[
      [
            'Columns' => 3,
            'Rows' => 2,
            'Text' => '<font color=\"#494E67\">Smoking</font><br><br>',
            'TextSize' => 'medium',
            'TextHAlign' => 'center',
            'TextVAlign' => 'bottom',
            'ActionType' => 'reply',
            'ActionBody' => 'Smoking',
            'BgColor' => '#f7bb3f',
            'Image' => 'https://img.icons8.com/material-outlined/24/000000/smoking.png',
      ],
      [
            'Columns' => 3,
            'Rows' => 2,
            'Text' => '<font color=\"#494E67\">Non Smoking</font><br><br>',
            'TextSize' => 'medium',
            'TextHAlign' => 'center',
            'TextVAlign' => 'bottom',
            'ActionType' => 'reply',
            'ActionBody' => 'Non smoking',
            'BgColor' => '#f6f7f9',
            'Image' => …
Run Code Online (Sandbox Code Playgroud)

viber viber-api viber-bot

5
推荐指数
1
解决办法
670
查看次数

标签 统计

viber ×1

viber-api ×1

viber-bot ×1