Creating group chats through Bot APIs is not supported. However, this can be accomplished with Graph APIs
Whether Teams bot can actively create group chat?
kkk
0
Reputation points
data := map[string]interface{}{
"activity": map[string]interface{}{
"type": "message",
"serviceUrl": "https://smba.trafficmanager.net/apac/",
"channelId": "msteams",
"from": map[string]string{
"id": ts.BotId,
"name": ts.BotName,
},
"locale": "zh-CN",
"text": "hello",
},
"bot": map[string]string{"id": ts.BotId, "name": ts.BotName, "role": "bot"},
"channelData": nil,
"isGroup": true,
"members": []map[string]string{{
"aadObjectId": member.ObjectId,
"id": member.Id,
"name": member.Name,
"role": "user",
}, {
"aadObjectId": member2.ObjectId,
"id": member2.Id,
"name": member2.Name,
"role": "user",
},
},
"tenantId": ts.TenantID,
"topicName": "testtttt",
}
i try https://learn.microsoft.com/zh-cn/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0#create-conversation, but get {"error":{"code":"BadSyntax","message":"Incorrect conversation creation parameters"}}
I would like to ask if this feature can be implemented in the following? Or is there something wrong with my use?
Microsoft Teams | Development
4,136 questions
Microsoft Security | Microsoft Graph
13,724 questions
Microsoft Teams | Microsoft Teams for business | Other
10,936 questions