我有一个数组
Var choices = [a , b , c, d....];
我想用:
builder.prompts.choice(session, "Select one: ", choices, builder.ListStyle.list);
但我不确定使用数组作为参数的正确格式。文档说
选项:{string []} - 作为字符串数组的选项列表。
有人可以举例说明如何正确编码吗?
答案 0 :(得分:0)
以下是一个例子:
var choices = ["Musician Explorer", "Musician Search"]
builder.Prompts.choice(session, "How would you like to explore the classical music bot?", choices);