可以更改Google Chatbot的card宽度吗? [英] Is it possible to change `card` `width` of Google Chatbot?

查看:105
本文介绍了可以更改Google Chatbot的card宽度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找更改Google Chatbot创建的 宽度的方法,但到目前为止,我没有发现任何更改

I was looking around to change card width created by Google Chatbot but as far I see there is no any config within Chatbot API.

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

Is it possible to set an attribute somehow?

我当前的

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

}

这些是环聊聊天API ,我一直在寻找,但是没有有关自定义 width 值的信息;

and those are Hangouts Chat APIs I've looked for now but no information about customise the width value;

  • Design guidelines
  • Card Formatting Messages
  • Creating interactive cards

推荐答案

不幸的是,按照宽幅< a href = https://developers.google.com/hangouts/chat/reference/rest/v1/cards#section rel = nofollow noreferrer>卡片概述。

Unfortunately, it is not possible to change the width of a card, per the broad Cards overview.

这篇关于可以更改Google Chatbot的card宽度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆