SkypeForBusinessBot
SkypeForBusinessBot copied to clipboard
Exception thrown: 'Microsoft.Bot.Connector.MicrosoftAppCredentials.OAuthException' in mscorlib.dll
My bot builder is the latest version.
The code breaks here:
await postToBot.PostAsync(activity, CancellationToken.None);
Is there something that I need to make a change in the activity object?
Activity activity = new Activity()
{
From = new ChannelAccount { Id = fromId, Name = fromId },
Conversation = new ConversationAccount { Id = conversationId },
Recipient = new ChannelAccount { Id = "Bot" },
ServiceUrl = "https://skype.botframework.com",
ChannelId = "skype",
ChannelData = SendMessageUrl
};
Left at the same status. I am wondering if it has to do with BotApp ID registration. Do I have to create my won bot on Azure and use the ID and Bot here to continue ?
Yes you would need to register the bot and put correct Microsoft app id and secret in the config.