Closed mpelekh closed 1 year ago
Hi @mpelekh,
A few questions:
Hi @anishprasad01 !
- What language are you using?
TypeScript.
- What are the versions of the relevant packages in your project?
botbuilder
: 4.16.0
botframework-connector
: 4.16.0
botframework-schema
: 4.16.0
- How is this bot deployed?
The issue is reproducible for the bot application from AppSource as well as for the custom build application.
The bot is deployed as a node.js web server built with restify
(v. 8.6.1) framework.
- Does the behavior change depending on which Teams client or conversation you use?
No, it doesn't. The behavior is the same for both Web and for Desktop Teams clients and it doesn't depend on the conversation that is used.
Note: This issue is reproducible in any case when the message extension is used. You can use the "Steps to Reproduce" from the issue description and check the appropriate request in the network tab to see the payload on the message extension invoke.
I was able to reproduce this behavior. The bot is creating the Hero Card by getting the image from messagePayload.body.content
as sent by Teams, and the attachments
are indeed empty. You cannot simply access the URL provided in body, for security.
Let me verify if this is expected behavior or not, as that will inform next steps.
@mpelekh,
Based on what I have heard from Teams and this Teams documentation on messaging extensions, it appears that this functionality is expected behavior, and will not be changed. Further inquiries on this point should be directed to Teams, as we don't control this on the bot side.
Images are not accessible when are sent from MS Teams to the bot via message extensions
Steps to reproduce: 1. Use the snipping tool anywhere on your screen. 2. Paste it onto a message in a channel.
3. Send. 4. Send this message to the bot via message extension.
Actual result: The
attachments
are empty. The bot can't handle the attachment since there is no metadata in the payload to the uploaded attachment. Expected result: The bot has access to the attachment in the payload and can handle it.Notes:
Message extension in the manifest file:
The payload sent by MS Teams. Pay attention that attachments are empty even that image was uploaded: