Facebook聊天机器人回发不响应

2024-09-27 00:18:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我在fb聊天机器人和使用回发在通用模板按钮。但是,单击回发按钮后没有响应。在

enter image description here

"buttons": [
                {
                    "type": "web_url",
                    "url": "https://maps.google.com/?q={lat},{lon}".format(lat=store['coordinates']['lat'], lon=store['coordinates']['lon']),
                    "title": u"店家位置"
                },
                {
                    "type": "postback",
                    "payload": Function.sendGourmetComments + "_{id}".format(id=store["id"]),
                    "title": u"觀看評論"
                },
                {
                    "type": "postback",
                    "payload": Function.sendStoreHearts + "_{upload}".format(upload=None) + "_{id}".format(id=store["id"]) + "_{push}".format(push=None) + "_{edit}".format(edit=None) + "_{search}".format(search=True),
                    "title": u"撰寫評論"
                }
            ]

我想我没有检查消息回传事件,但是,我检查了。我甚至没有收到我的webhook的任何回应。所以对我来说这有点神秘。在

它以前工作得很好,但是重新启动计算机后就不能正常工作了。我使用ngork将我的服务器API公开为回调url。在


Tags: storenoneidformaturltitletypefunction

热门问题