rveachkc / pymsteams

Format messages and post to Microsoft Teams.
https://pypi.org/project/pymsteams/
Apache License 2.0
422 stars 78 forks source link

How to attach a file that can be downloaded? #81

Closed mahima2112 closed 3 years ago

mahima2112 commented 3 years ago

Can I attach a csv file to Teams message? If not, is it possible to generate a link using python script for box and pass it in download button from where it can be downloaded?

rveachkc commented 3 years ago

The api used by pymsteams does not support file attachments. If you want to add a download link, the best path would be to add your own url through an OpenURI action: https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference#openuri-action