【问题标题】:how to end typing in bot framework using Node js如何使用 Node js 结束在 bot 框架中的输入
【发布时间】:2019-12-11 23:57:35
【问题描述】:

如何结束 bot 框架中的“打字”(使用 nodeJs 构建)。 即使在收到来自 bot 的下一条消息之后,输入也会指示。

【问题讨论】:

  • 嗨,akshay,您能进一步解释一下您的问题吗?您使用的是什么渠道(Skype、WebChat、Facebook Messenger 等)?您是否将session.sendTyping() 功能用作documented here? 聊天框的屏幕截图也可能有助于诊断您的问题。谢谢!
  • 嗨,实际上我在 Slack 中使用它,即使在新消息到达后“打字”符号仍然可见。是的,我正在使用“session.sendTyping()”

标签: node.js botframework


【解决方案1】:

尝试使用context.sendActivity({ type:ActivityTypes.Typing})

别忘了从“botbuilder”导入“ActivityTypes”

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-10-26
    • 1970-01-01
    • 2021-02-04
    • 1970-01-01
    • 1970-01-01
    • 2020-03-26
    • 2020-02-07
    • 1970-01-01
    相关资源
    最近更新 更多