可以更改Google Chatbot的card宽度吗?

时间:2019-05-07 12:44:03

标签: javascript chatbot hangout hangouts-api google-chat

我一直在四处更改由Google Chatbot创建的card width,但到目前为止,我发现Chatbot API中没有任何配置。

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

我当前的Card class

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值的信息;

1 个答案:

答案 0 :(得分:0)

不幸的是,根据Cards的广泛概述,无法更改卡的宽度。