I am programming a FacebookBot with Node.js using the MS bot framework.
I am programming a process to send a message after a certain period of time, but I am in trouble because I can not save the return value of setTimeout() in session.
This is my code.
var timeout = setTimeout(() => {
// run function
}, 10000);
session.dialogData.timeout = timeout;
builder.Prompts.text(session, 'text');
Somebody have a good idea?
Thank you helping.
via nkhrk
No comments:
Post a Comment