0

我一直在尝试使用 m.me 链接传递参数,但是当我的应用程序的测试人员/开发人员帐户尝试此功能时,我的 webhook 没有收到任何事件。我的机器人已经有一个开始按钮,并且该页面已发布。

我想问的是为什么我不能得到任何事件以及如何解决这个问题?

let message = {
                "attachment": {
                  "type": "template",
                  "payload": {
                    "template_type": "generic",
                    "elements": [
                      {
                        "title": "Share me ",
                        "subtitle": "share to your friend",
                        "image_url": "https://gallery.yopriceville.com/var/resizes/Free-Clipart-Pictures/Sun-and-Moon-PNG/Transparent_Sun_with_Shades_PNG_Clipart_Picture.png?m=1434276589",
                        "buttons": [
                          {
                            "type": "element_share",
                            "share_contents": {
                              "attachment": {
                                "type": "template",
                                "payload": {
                                  "template_type": "generic",
                                  "elements": [
                                    {
                                      "title": "Add to connect to your friend",
                                      "subtitle": "connect",
                                      "image_url": output.profile_pic,
                                      "default_action": {
                                        "type": "web_url",
                                        "url": `http://m.me/${page_id}?ref=invited_by_${recipientId}`
                                      },
                                      "buttons": [
                                        {
                                          "type": "web_url",
                                          "url": `http://m.me/${page_id}?ref=invited_by_${recipientId}`,
                                          "title": `ADD ${output.first_name}`
                                        }
                                      ]
                                    }
                                  ]
                                }
                              }
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              };
4

0 回答 0