0

我正在尝试使用此消息回复用户:

  bot.reply(message, {
                    "attachment":
                    {
                        "type": "template",
                        "payload": {
                            "template_type": "generic",
                            "sharable": true,
                            "elements": [
                                {
                                    "title": "MY title of bd",
                                    "image_url": "https://storage.googleapis.com/ssfkj.com/undefined",
                                    "subtitle": "undefined/undefinedundefinedn(undefined)",
                                    "default_action": { "type": "web_url", "url": "https://ssfkj.com/profile", "messenger_extensions": true, "webview_height_ratio": "tall", "fallback_url": "https://ssfkj.com/profile" }
                                    , "buttons": [{ "type": "payload", "payload": "DEL__PA_undefined", "title": "View more" }
                                    ]
                                }]
                        }
                    }
                });

但是机器人什么也没发送。我的代码有什么问题?

4

1 回答 1

2

我的问题是在这个级别上:

"buttons": [{ "type": "payload", "payload": "DEL__PA_undefined", "title": "View more" }]

类型属性

应该有价值

回发

不是

有效载荷

于 2018-04-24T15:30:31.803 回答