I have created a personal BOT and created a tabin the tab when the user click on the button that user automatically added to the groupchat
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var conversationMember = new AadUserConversationMember
{
VisibleHistoryStartDateTime = DateTimeOffset.Parse("2019-04-18T23:51:43.255Z"),
Roles = new List<String>()
{
"owner"
},
AdditionalData = new Dictionary<string, object>()
{
{"user@odata.bind", "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5"}
}
};
await graphClient.Chats["{chat-id}"].Members
.Request()
.AddAsync(conversationMember);
Its throwing an error The initiator 8:orgid:e11885e0-aef7-41e7-be4b-a32c55b5b8e4 is not a member of the roster afbe6dc0-ab9b-49b7-8cfc-c9794834a6f8 in the generic thread 19:19496b7b2d12406694dabcf0edb24cee@thread.v2.isSelfJoining: True isSelfJoiningEnabled: False
when i tried with application token(bot)getting error requested api is not supported in application-only context
