Teams bot dev: access the original formatted user input in Activity payload

Benoit Dupont 66 Reputation points
2023-06-30T11:14:25.9533333+00:00

Hello,

How can I access the original user input content from inside the Activity payload?

Until now, I used to look at the Activity.attachments where the contentType is "text/html" and it should be the original message.

When I have a payload coming from iOS, the message is not always in the Activity.attachments

It looks like it's only there when there is more than one line of text.

Also, the HTML content is not the same on iOS and Desktop, which is a bad thing to parse it and understand its content.

How can I access the raw formatted user input every time?

Thanks

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,230 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.