'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:

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:

  1. 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

  2. you register its URL in MS Bot framerwork here: https://dev.botframework.com/bots/new

  3. 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