I've created a QnABot that works with the new multiturn QnAmaker capability. The BOT initiates conversation fine when used with the emulator but not when used in an Iframe or in the Azure test environment. Can anyone help me understand what I need to add or change in the code to make it initiate. To clarify, when I run the code locally it works. It doesn't work in Iframes or similar
protected override async Task OnMembersAddedAsync(IList<ChannelAccount> membersAdded, ITurnContext<IConversationUpdateActivity> turnContext, CancellationToken cancellationToken)
{
foreach (var member in membersAdded)
{
// Greet anyone that was not the target (recipient) of this message.
if (member.Id != turnContext.Activity.Recipient.Id)
{
await turnContext.SendActivityAsync(MessageFactory.Text($"Welcome to the IBC Leave Bot, I can help you answer questions about your leave.\n\n Type HELP to get some ideas about what to ask me"), cancellationToken);
}
}
}
}
}