I trying to create a new conversation with person or group of persons, so I create a Bearer token for authentication and add it to header as bearer token (in postman).
So on the next step I create a json script that, theoretically, can create a new conversation. I trying to create a conversation with several person or with only one (for it I added a several person to members or one and change flag isGroup to true or false).
This is a example of json for 1 person:
{
"bot": {
"id": "<app id>",
"name": "<bot name>"
},
"isGroup": false,
"members": [
{
"id": "<member id>",
"name": "<member name>"
}
],
"topicName": "Hello there!"
}
Member id is correct for all members that I trying to add in a new conversation.
And the next response I get always:
{
"id": "8:live:<skype account name>"
}
For group conversation I get the this live skype name for first person that I added. All requests was send to https://skype.botframework.com/v3/conversations or https://smba.trafficmanager.net/apis/v3/conversations and response always same.
Can someone tell me what I'm doing wrong?
Also if I add Activity in body like:
"activity":
{
"type": "message",
"from":
{
"id": "<app-id>",
"name": "<bot name>"
},
"recipient":
{
"id": "<member id>",
"name": "<member name>"
},
"text": "HI"
}
I get next response:
{
"error":
{
"code": "ServiceError",
"message": "Unknown"
}
}