microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
350 stars 144 forks source link

[Bug]: TeamsAttachmentDownloader does not use download_url #1789

Closed heyitsaamir closed 3 days ago

heyitsaamir commented 4 days ago

Language

Python

Version

latest

Description

When download_url is available, it should be used to download files. This is according to the guidance given here: https://learn.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bots-files. Anecdotally, I see that TeamsAttachmentDownloader fails when attaching some files, but when I use the download_url it succeeds.

Reproduction Steps

1. Use TeamsAttachmentDownloader in your bot
2. Send a file as an attachment to your bot
3. Your bot will not be able to download the file.