Bot Framework .Net,如何从我的 Web 应用程序获取用户名、ID、令牌到 Bot

Bot Framework .Net, How I can get either the Username, Id, Token from my Web App to Bot

我创建了一个机器人,它将与来自我的 Web (React-app) 的当前登录用户进行交互。因此,在我的网站中,如果我当前正在登录并且单击我使用网络聊天嵌入的机器人。所以我想得到我保存在 cookies/state 中的那个 token/username/id。我如何将该数据传递给机器人?这样我的机器人就会知道他在和谁说话。因为我不希望我的机器人再次登录,因为他已经登录到我的 Web 应用程序中。

我找到了一些资源并且对我有用。
- https://github.com/Microsoft/BotFramework-WebChat
-(另一个例子)https://user-images.githubusercontent.com/42096464/82071374-a1fc8680-969b-11ea-8080-23c618163096.png