How to make a bot a teams app

Zhu, Zihan 41 Reputation points
2021-02-22T18:09:26.46+00:00

Hi,

I made a normal bot by using Microsoft Bot Framework and has deployed it to the azure portal. I tried to channel the bot to teams, which worked but the bot couldn’t receive attachments. How can I make it do so?
Also, I noticed that general bots are a bit different from teams bots according to the samples from GitHub, for example, general bots extend ActivityHandler but teams bots extend TeamsActivityHandler. So how can I turn my bot to a teams app? Do I need to alter the code of the bot I made a lot?

Thank you.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
771 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,974 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 47,686 Reputation points
    2021-02-22T23:02:52.653+00:00

    Hello,

    Thanks for reaching out to us. You can configure a bot to communicate with users through Microsoft Teams as below document:

    https://learn.microsoft.com/en-us/azure/bot-service/channel-connect-teams?view=azure-bot-service-4.0

    For more information about connection between bot and channels please see:
    https://learn.microsoft.com/en-us/azure/bot-service/bot-service-manage-channels?view=azure-bot-service-4.0

    Regards,
    Yutong