If you have a look to the implementation of QnAMakerDialog
on Github (here), you will find that the message is declared here:
protected virtual async Task QnAFeedbackStepAsync(IDialogContext context, QnAMakerResults qnaMakerResults)
{
var qnaList = qnaMakerResults.Answers;
var questions = qnaList.Select(x = >x.Questions[0]).Concat(new[] {
Resource.Resource.noneOfTheAboveOption
}).ToArray();
PromptOptions < string > promptOptions = new PromptOptions < string > (
prompt: Resource.Resource.answerSelectionPrompt, tooManyAttempts: Resource.Resource.tooManyAttempts, options: questions, attempts: 0);
PromptDialog.Choice(context: context, resume: ResumeAndPostAnswer, promptOptions: promptOptions);
}
As you can see, the message sent when the TooManyAttemptsException
is thrown is in the Resources of the package: Resource.Resource.tooManyAttempts
.
You could think about overriding the method, but you will soon face the problem of having to reference undefined methods: here the ResumeAndPostAnswer
is defined as private, so not visible.
So one of the solutions, sadly, would be to get all the necessary sources from the GitHub project (that is to say get almost all the QnAMakerDialog implementation)