You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Due to the way the dialog stack works, calling a bot.beginDialog() inside an ask() handler will cause the next step of the dialog in which the ask() is called to be skipped.
This is because the ask() handler actually fires during the first phase of processing that next step, and when the beginDialog occurs, the process is short circuited. There is currently no way to resume at that step after the child dialog has completed.
One possible solution is to split the message into 2 actual steps, one solely for processing the response to the question and a second to send the following message. This can theoretically be achieved inside the .ask function.
The text was updated successfully, but these errors were encountered:
benbrown
changed the title
Callining beginDialog from inside a ask() handler causes a message to be skipped
Calling beginDialog from inside a ask() handler causes a message to be skipped
Mar 13, 2020
Due to the way the dialog stack works, calling a
bot.beginDialog()
inside anask()
handler will cause the next step of the dialog in which theask()
is called to be skipped.This is because the
ask()
handler actually fires during the first phase of processing that next step, and when the beginDialog occurs, the process is short circuited. There is currently no way to resume at that step after the child dialog has completed.One possible solution is to split the message into 2 actual steps, one solely for processing the response to the question and a second to send the following message. This can theoretically be achieved inside the .ask function.
The text was updated successfully, but these errors were encountered: