Forum Discussion
MS Teams bot - how to download file that was uploaded in teams
chisr -Your bot can directly send and receive files with users in the personal
context, also known as personal chats, using Teams APIs. In order to send and receive files in your bot, you have to set the supportsFiles
property in the manifest to true
. This property is described in the bots section of the Manifest reference. The definition will look like this: "supportsFiles": true
. If your bot doesn't enable supportsFiles
, this features won't work.
Reference Document- Send and receive files from a bot - Teams | Microsoft Docs
Sample Link-BotBuilder-Samples/samples/javascript_nodejs/56.teams-file-upload at 397672668ddc14a1adab7fc81068c6112d980fe7 · microsoft/BotBuilder-Samples (github.com)
Thanks!
This is not a published application, the users talk to the bot through the link from the registered bot Portal. So I will have to add my app as described here ? - https://docs.microsoft.com/en-us/microsoftteams/platform/sbs-file-handling-in-bot?tabs=visualstudio&tutorial-step=5
- Sayali-MSFTJul 29, 2022
Microsoft
Please have look into this doc-Send and receive messages with a bot - Teams | Microsoft Docs
- chisrJul 30, 2022Copper ContributorThanks.
It talks about sending an attachment (this works fine for me with HERO card).. My problem is - receiving an attachment (the url is private instead of pre-authenticated for a few minutes).- chisrJul 31, 2022Copper ContributorI added the bot as Teams App with manifest ("supportsFiles": true), but still I get "403" error when trying to access the downloadUrl. Can you please help?