简体   繁体   English

MS Teams Bot Framework 活动中是否包含主机名?

[英]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.

相关问题 Microsoft bot 框架移交解决方案以支持 MS Teams 中的代理 - Microsoft bot framework handover solution to support agents in MS Teams 微软团队 | Microsoft bot 框架 - 在任务/获取时返回 502 错误 - MS Teams | Microsoft bot framework - Returns 502 error on task/fetch 面临错误:对于使用 Bot Framework SDK 构建的 MS Teams Bot,此机器人不支持文件附件 - Facing Error: File attachments aren’t supported for this bot for MS Teams Bot built using Bot Framework SDK MS Teams Bot——是否可以从任务/提交活动而不是从 composeExtension/submitAction 活动调用 botMessagePreview? - MS Teams Bot -- Is it possible to invoke a botMessagePreview from a task/submit activity as opposed to from a composeExtension/submitAction activity? MS Bot框架v4 - 无法将QnA制造商添加到bot - 主机名加密值不是有效格式 - MS Bot framework v4 - cannot add QnA maker to bot - hostname encrypted value is not a valid format 访问 ms 团队活动源 - Accessing ms teams activity feed 如何在 MS Teams 机器人框架中使用 WhoBot 在自适应卡中滚动构建可搜索列表 - How to build a searchable list with scroll in adaptive card as WhoBot in MS Teams bot framework 已解决:使用 Bot Framework SDK 4 向 MS 团队发送自适应卡时出现 onTurnError - SOLVED: Getting onTurnError when sending adaptive card to MS Teams using Bot Framework SDK 4 MS BOT框架:附件 - MS BOT Framework: Attachments 在本地Ms Teams服务器中部署Bot - Deploying a Bot in On Premises Ms Teams server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM