我正在使用 botkit 来构建我的机器人。我第一次验证我的 webhook 时,存在的持久菜单是一个示例:
controller.api.thread_settings.menu([
{
"type":"postback",
"title":"Hello",
"payload":"hello"
},
{
"type":"postback",
"title":"Help",
"payload":"help"
},
{
"type":"web_url",
"title":"Botkit Docs",
"url":"https://github.com/howdyai/botkit/blob/master/readme-facebook.md"
},
]);
我将持久菜单更改为:
controller.api.thread_settings.menu([
{
"type":"postback",
"title":"Account",
"payload":"account"
},
{
"type":"postback",
"title":"News",
"payload":"news"
},
{
"type": "postback",
"title": "Contact",
"payload": "contact"
},
]);
但是已经3天没有改变我的设置了。我想了解什么是错误的,facebook messenger 何时更新菜单?我什至尝试使用 curl 删除和添加持久菜单,但没有任何效果。