Forum Discussion
rji575
Aug 20, 2024Copper Contributor
Microsoft Teams chat escapes characters when sent from bot integration
I have a bot created under an Azure app registration and when it is sending messages with escapable characters in the message text to users, those characters end up getting escaped.
For example if "\test" is sent from the bot to the user, the inbound message I receive from Teams would become the escaped version "\\test"
This is a snippet of the payload that I received
{ "text": "\\test", "textFormat": "plain", "attachments": [ { "contentType": "text/html", "content": "<p>\\test</p>" } ], "type": "message", "timestamp": "2024-08-20T22:59:44.0449984Z", "localTimestamp": "2024-08-20T15:59:44.0449984-07:00",
Is there a reason that characters end up being escaped? Is there any documentation that includes the exhaustive list of special character that Teams would escape?
- Nivedipa-MSFTMicrosoft
rji575 - Thanks for reporting your issue. We are able to repro your issue.
We have raised a bug for the same. We will let you know once we get any updates on it.