Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
SendToConversationAsync() returns BadSyntax (No valid activities found) intermittently #5061
Hello, I am developing a bot where I have 2 types of users: agent and customer. customer talks to bot and when bot cant complete the request it uses agent to answer. I used
First time customer sends the message to bot, bot is able to use
Described in issue
Message should be sent
Issue was due to activity text containing a string of the form "[bla]: foo" and textFormat defaulting to markdown. This should work if you set textFormat = "plain" or escape the text string if you need to keep textFormat = markdown for some reason.
If the other side is Teams, you will receive HTML or plain text messages in your bot, so if the scenario is to replay the message back into Teams, then you should set textFormat = xml.
@siduppal suggestion worked. Here is the full code that works.