Send file using bot ms teams api

Andrey Chikishev 1 Reputation point
2023-01-19T06:53:38.6833333+00:00

Good afternoon. I need help sending the file from the bot to the client. I made an implementation on this tutorial [https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-file-handling-in-bot?tabs=visualstudio
I receive a confirmation request to download the file, but the file is not downloaded
Screenshot from 2023-01-19 09-50-15

In the directory specified in contentUrl - empty - https://ispacepro-my.sharepoint.com/personal/*/Documents/Applications/FileUpload/file-sample_100kB.doc

At the same time, there is a file in the list of files in the application - but it is also empty
Screenshot from 2023-01-19 09-51-04

Can you help me?

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,777 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 5,516 Reputation points Microsoft Vendor
    2023-03-01T14:00:57.5066667+00:00

    We tried to repro the issue by setting up below sample.
    https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-file-upload
    However, for us file is being uploaded and downloaded successfully and we can access the file in 'Downloads' section.
    User's image

    User's image

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

    0 comments No comments