[英]Is the hostname included in an MS Teams Bot Framework Activity?
I am developing a Bot using node.js in MSBot framework and deployed the same in MS Teams channel and it is working fine.我正在 MSBot 框架中使用 node.js 开发一个 Bot,并在 MS Teams 频道中部署了相同的 Bot,它工作正常。 My requirement here is , i need to read the hostname of the end user machine and pass it as a run time variable , from node.js i need to pass it to python
我的要求是,我需要读取最终用户机器的主机名并将其作为运行时变量传递,从 node.js 我需要将它传递给 python
This is not possible in MSTeams, the full scope of the provided data within an MSTeams activity sent from a conversation to the bot can be seen here :这在 MSTeams 中是不可能的,从对话发送到机器人的 MSTeams 活动中提供的数据的完整范围可以在这里看到:
{ "type": "message", "id": "1485983408511", "timestamp": "2017-02-01T21:10:07.437Z", "localTimestamp": "2017-02-01T14:10:07.437-07:00", "serviceUrl": "https://smba.trafficmanager.net/amer-client-ss.msg/", "channelId": "msteams", "from": { "id": "29:1XJKJMvc5GBtc2JwZq0oj8tHZmzrQgFmB39ATiQWA85gQtHieVkKilBZ9XHoq9j7Zaqt7CZ-NJWi7me2kHTL3Bw", "name": "Richard Moe" }, "conversation": { "id": "a:17I0kl9EkpE1O9PH5TWrzrLNwnWWcfrU7QZjKR0WSfOpzbfcAg2IaydGElSo10tVr4C7Fc6GtieTJX663WuJCc1uA83n4CSrHSgGBj5XNYLcVlJAs2ZX8DbYBPck201w-" }, "recipient": { "id": "28:c9e8c047-2a74-40a2-b28a-b162d5f5327c", "name": "Teams TestBot" }, "textFormat": "plain", "text": "Hello Teams TestBot", "entities": [ { "locale": "en-US", "country": "US", "platform": "Windows", "timezone": "America/Los_Angeles", "type": "clientInfo" } ], "channelData": { "tenant": { "id": "72f988bf-86f1-41af-91ab-2d7cd011db47" } } }
I am unsure if anything here qualifies as what you meant, but if it is outside of this scope it is not automatically provided.我不确定这里的任何内容是否符合您的意思,但如果超出此范围,则不会自动提供。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.