在Facebook Messenger中,按钮(也在卡片上)可以发送自定义有效负载以及单击的按钮文本 . 此有效内容在消息的sourceEvent部分中可用 . 此负载也必须手动添加到sourceEvent中 . 没有正式的Bot框架API可用于执行此操作 .

这是FB按钮上的示例有效负载

https://developers.facebook.com/docs/messenger-platform/send-api-reference/button-template

My Chatbot also supports Webchat. Does Webchat supports sending such payload to the bot? 现在我得到的只是点击按钮的文字 .