question

MartinBilda-7257 avatar image
MartinBilda-7257 asked ·

Correct structure of a response to a bot

I have built a Microsoft Teams App myself using AppStudio. For this application I registered a bot and added a messaging endpoint. I have added the app to my team and can also access my bot using @bot. My request also appears on my web service, only the response does not come back.
If I send a request to my web service using Postman, I receive a response. If I send a request using the bot from MSTeams, the bot does not respond. How do I build the response so that it leads to a message in Microsoft teams? As a Json object? What structures does this Json object need? Just return a string? Please help me

Best regards

office-teams-windows-itpro
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JimmyYang-MSFT avatar image
JimmyYang-MSFT answered ·

Hi MartinBilda-7257!
Sorry ,i am not familar with development. I found a document and it refers channel and group chat with Microsoft Teams bot for your reference:
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-and-group-conversations?tabs=dotnet
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.