相关疑难解决方法(0)

将 Webhook 发布到现有线程

试图弄清楚如何在 Hangouts Chat 中将 webhook 消息发布到聊天室中的现有线程。

当我发布到 webhook URL 时,我收到以下响应:

{
    "name": "spaces/123123123123/messages/128391203812903809128",
    "sender": {
        "name": "users/u4i3u4oi32u5oi23u4o23",
        "displayName": "Mecha",
        "avatarUrl": "",
        "email": "",
        "type": "BOT"
    },
    "text": "",
    "cards": [
        {
            "header": {
                "title": "Some Title",
                "subtitle": "Some Subtitle",
                "imageStyle": "IMAGE",
                "imageUrl": "Some Image URL",
                "imageAltText": ""
            },
            "sections": [],
            "cardActions": [],
            "name": ""
        }
    ],
    "previewText": "",
    "annotations": [],
    "thread": {
        "name": "spaces/123123123123/messages/128391203812903809128"
    },
    "space": {
        "name": "spaces/123123123123",
        "type": "ROOM",
        "displayName": "Chat Room"
    },
    "fallbackText": "",
    "argumentText": "",
    "createTime": …
Run Code Online (Sandbox Code Playgroud)

hangout hangouts-chat

3
推荐指数
1
解决办法
1746
查看次数

标签 统计

hangout ×1

hangouts-chat ×1