Multiple Choice Query with Node.js

I would like to create a selection request in Node.js that allows the user to make multiple selections, as in FormFlow for .NET (see the toppings Simple Sandwich Bot tooltip).

Maybe there is already some example code that I could adapt? Is it also possible using buttons instead of a list?

+5
source share
2 answers

This feature is currently not available in the Node.js SDK for BotBuilder. It is available only in the .NET version. related question

0
source

Maybe you are looking for sth like this? npm install prompt --save

although it does not have a button, for this you will need the ui interface, but not a command prompt

var prompt = require('prompt'); prompt.get(['choice'], function(err, result) { if (result.choice == "0") { //selects multiple choice 0 } }); 
-1
source

Source: https://habr.com/ru/post/1263057/


All Articles