'How to build a python bot for Teams? How to deploy the same in my PROD server?
I would want to build a bot in python. I would want to to do various rest calls using that bot. Can this be done in Teams and deployed in PROD LINUX server?
I have python bot in slack and that works perfectly fine.
Solution 1:[1]
Bots built for Microsoft Teams are made using the Microsoft Bot Framework, which has a Python SDK you can use, or you can use straight REST calls if you prefer. See:
- Teams app docs: https://docs.microsoft.com/en-us/microsoftteams/platform/overview
- Bot Framework docs: https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0
For chat bots, it doesn't matter what OS you use to host your service.
Solution 2:[2]
Microsoft recently updated a lot of their tools, plus their documentation is horrible. I spent an enormous amount of time sifting through it, and here is my distilled version:
you create your bot handler using this code as a starting point: https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/python/02.echo-bot
you register its URL in MS Bot framerwork here: https://dev.botframework.com/bots/new
you add MS Teams as a channel
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Andrew Clear |
| Solution 2 | Alexei Masterov |
