【问题标题】:Is it possible to change `card` `width` of Google Chatbot?是否可以更改 Google Chatbot 的“卡片”“宽度”?
【发布时间】:2019-05-07 12:44:03
【问题描述】:

我正在四处寻找更改由 Google Chatbot 创建的 card width,但目前我看到 Chatbot API 中没有任何配置。

是否可以通过某种方式设置属性?

我现在的Cardclass;

class Card {
    constructor(title, subtitle, imgUrl) {
        this.sections = [];
        this.cardObject = {
            "cards": [
                {
                    "header": {"title": title, "subtitle": subtitle, "imageUrl": imgUrl},
                    "sections": this.sections
                }
            ]
        };
    }

}

这些是我现在寻找的 Hangouts Chat API,但没有关于自定义 width 值的信息;

【问题讨论】:

    标签: javascript chatbot google-chat


    【解决方案1】:

    很遗憾,根据广泛的Cards 概述,无法更改卡片的宽度。

    【讨论】:

      猜你喜欢
      • 2020-06-11
      • 1970-01-01
      • 2020-01-23
      • 2022-10-19
      • 2013-08-17
      • 2016-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多