Forum Discussion

voonsionglum's avatar
voonsionglum
Brass Contributor
Jul 21, 2020

Initiating a group chat

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

  • voonsionglum , Group chat doesn't work, we tested this at our end. You can create 1:1 and channel conversation using API

Resources