Does Teams support bot send attachments into conversations such as apk, pdf by REST?

381 Views Asked by At

I am trying to build a Bot that supports posting apk files into Teams using the BotFramework REST APIs.

I have tried https://smba.trafficmanager.net/amer-client-ss.msg/v3/conversations/${conversationId}/activities but got the response:

{
    "error": {
        "code": "BadArgument",
        "message": "Unknown attachment type "
    }
}

I also tried https://smba.trafficmanager.net/amer-client-ss.msg/v3/conversations/${conversationId}/attachments and got the response statuscode:404.

Does Teams not support this?

1

There are 1 best solutions below

0
On

UPDATE: Teams now supports bots sending and receiving files. As far as I can tell, there isn't a restriction on file types.