[英]how to get back the “payload” of the button “ Get Started ” in c#
I work with Microsoft Bot Framework in Messenger and I would like to know how to get back the "payload" of the "Get Started" button. 我使用Messenger中的Microsoft Bot Framework,我想知道如何取回“入门”按钮的“有效负载”。 Which function I should create in C#?
我应该在C#中创建哪个函数?
You don't have to - the payload is returned as a regular message, so you can just use this: 您不必-有效负载会作为常规消息返回,因此您可以使用以下代码:
if (activity.ChannelId == "facebook" && activity.Text == "GET_STARTED_PAYLOAD")
{
// etc
Note that the documentation lists some restrictions on this feature : 请注意, 文档列出了对此功能的一些限制 :
- The welcome screen is only shown the first time the user interacts with the Page on Messenger.
仅在用户第一次与Messenger上的Page交互时才显示欢迎屏幕。
- Only admins, developers, and testers of the app can see it when the app is in development mode.
当应用处于开发模式时,只有该应用的管理员,开发人员和测试人员才能看到它。
- Your app must be subscribed to postback webook events.
您的应用必须订阅回发Webook活动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.