My bot is deployed to Azure's Bot Service, I enabled the Teams channel and I have successfully connected it to Teams. However, what I don't get is why it is working! :-)
When setting up the bot in Teams' "App Studio", the UI looks like the screenshot below. I don't use "Select from one of my existing bots", because the bot is deployed using a different user account. Instead, I paste just the AppId of the bot, using "Connect to a different bot id":
My questions are:
MicrosoftAppId
and MicrosoftAppPassword
to non-empty strings in appsettings.json
and run the bot locally, I must provide these credentials when using the Bot Framework Emulator, otherwise a 401 is returned.[Me again :])
Have a look at my blog post on how bots work 'under the covers' - it will explain how the back and forward works, and how the Bot Framework Services provide this 'glue', so to speak.