Jul 21 2020 01:10 AM
Hi,
We are trying to initiate a group chat with members in Teams. We are using Postman to call the BotFramework REST API to start a group conversation.
Here is the payload we are using
{
"type": "message",
"isGroup": true,
"members": [
{
"id": "Some Id"
},
{
"id": "Some Id"
}
],
"tenantId": "Some Id",
"topicName": "test"
}
When we tried to execute the request, we get the following error
{
"error": {
"code": "BadSyntax",
"message": "Incorrect conversation creation parameters"
}
}
If we tried to initiate a conversation with only ONE member with the following payload, then everything works correctly
{
"type": "message",
"isGroup": false,
"members": [
{
"id": "Some Id"
}
],
"tenantId": "Some Id",
"topicName": "test"
}
Can anyone advise what the proper syntax to creating a group chat in Teams with the BotFramework REST API?
Thank You
Jul 21 2020 10:29 PM
@voonsionglum Could you please check the required conversation Parameters are added in request body or not? Also please confirm if you are initiating the group chat with members only or there is Bot also included in that
Jul 21 2020 10:32 PM
@Trinetra-MSFT the documentation at https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-referen... did not specify which parameter is required. Per the example where creating a 1:1 conversation with the REST API, the parameters were
{
"type": "message",
"isGroup": false,
"members": [
{
"id": "Some Id"
}
],
"tenantId": "Some Id",
"topicName": "test"
}
I only updated the parameters by changing "isGroup" to true and added another member's id in the "members" array.
No bot Ids were were added to the "members" array
Sep 14 2020 03:16 AM
Solution@voonsionglum , Group chat doesn't work, we tested this at our end. You can create 1:1 and channel conversation using API
Sep 22 2023 04:41 AM
Sep 14 2020 03:16 AM
Solution@voonsionglum , Group chat doesn't work, we tested this at our end. You can create 1:1 and channel conversation using API