Send a typing indicator in bot-framework v4 using DirectLine and webchat (Node.js)

后端 未结 3 1803
无人及你
无人及你 2021-01-07 04:58

The official docs for Microsoft bot-framework SDK v4 do not demonstrate how to send a typing indicator (whereas v3 has these instructions). I\'m using DirectLine and botfram

3条回答
  •  时光取名叫无心
    2021-01-07 05:48

    I believe you should do something like this

    await context.sendActivities([
        { type: 'typing' },
        { type: 'delay', value: 2000 },
        { type: 'message', text: 'Your message here' }
    ]);
    

提交回复
热议问题