My bot (using Teams toolkit in vscode) needs to communicate with another program that's located on my server so I would like to host my bot on the same server. But, according to the docs I can only deploy it to Azure. I don't really want to build an API and would rather host the bot on my own server if possible.
I watched some videos on YouTube that were not helpful and looked at the documentation. I was expecting a clear "yes you can host it on premises if you do x" or a clear "no not possible" but got none.
Yes, it is possible to host it on premises. In order for a bot to work in Teams, it must have a registration in the Microsoft Bot Framework Services in Azure, but there are two options when creating your bot in Azure:
Bot with Web App - this includes a bot registration AS WELL AS hosting, specifically using an Azure Web App
Bot "Channels" Registration - this is JUST the registration, which allows a very decent free traffic option (number of messages), and then also allows you to host your bot wherever you like (Azure, AWS, local, etc.). Part of the configuration is an https web address where you bot 'lives', which could be served from your local server.
So, it's possible to host locally, but it has several challenges/considerations:
so consider careful before hosting locally, but yes it can be done.