Activity.Text is set to filename and not the message text when sending a Slack message with attachment
See original GitHub issueVersion
What package version of the SDK are you using. 4.10.3
Describe the bug
When sending a message in Slack with an attachment, the turnContext.Activity.Text
property is populated with the file name and not the message text.
To Reproduce
Steps to reproduce the behavior:
- Create a bot and connect it to Slack using Azure Bot Service.
- In Slack, type a message that also includes an attachment.
- Check out the properties of
turnContext
inOnMessageActivityAsync
Expected behavior
Expected that turnContext.Activity.Text
is populated with the Slack message (“hey there, here’s an attachment” in the screenshot.)
Actual: turnContext.Activity.Text
is populated with the file name of the uploaded attachment.
Screenshots
Additional context
I can see the message in ChannelData
, but I think the current behavior is incorrect. Text
should be the message. It’s already possible to get the attachment filename via the Attachments
property. For example, if I attach multiple files, the Text
property is populated with just one of those file names.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@v-kydela, I have created a separate Issue 280 to track the fix in ABS. Adding @arturl , @craigjensen @bwamie for visibility. Also, moving this issue out of the R12 release.
Looks like there is an ongoing effort on fixing this bug. I am exempting it from DRI.