Is it necessary for a microsoft teams bot to be accessible publicly?

拜拜、爱过 提交于 2019-12-13 04:13:17

问题


In "Get started on the Microsoft Teams platform with C#/.NET and App Studio" its stated that

Remember that apps in Microsoft Teams are web applications exposing one or more capabilities. For the Teams platform to load your app, your app must be reachable from the internet.

Is it enough to have the application available for the user who is working with teams (like in the local network) or does the internet mean the internet here?


回答1:


When user types in command in chat textbox in Microsoft Teams, this is routed to backend chat service which then calls your bot endpoint specified in Bot setting. That's the reason having user and code on the same network won't help. Your bot has to be publicly accessible over internet. Here is simple bot flow:




回答2:


In this case, the internet means the internet.

To expand upon this a bit, your bot can be deployed locally or on your own servers, but it must have a publicly accessible endpoint as the communication is routed through Microsoft Chat Services, and does not hit your bot directly.



来源:https://stackoverflow.com/questions/54425146/is-it-necessary-for-a-microsoft-teams-bot-to-be-accessible-publicly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!