【问题标题】:Debug msft teams bot channel conversation调试 msft 团队机器人频道对话
【发布时间】:2019-01-10 14:55:42
【问题描述】:

我有一个机器人,它在用户 A 的私人聊天中收集有关用户 B 的信息,然后将其发送给用户 B。我正在通过 Dialog 收集信息,然后格式化要发送的 HeroCard。我正在使用 Bot Emulator 测试私人聊天代码,但我无法在没有收到 500 InternalServerError 的情况下测试在模拟器中创建新对话 ()。当我部署代码并将机器人集成到现有的 Teams 频道中时,我收到 400 条错误请求响应。

是否有可以帮助我在本地调试创建新对话的工具?

【问题讨论】:

  • I'm unable to test creating a new conversation () in the emulator without getting a 500 InternalServerError. 你能详细说明一下这个问题吗?你如何创建一个新的对话?您可以分享相关代码,以便我们重现问题。

标签: c# botframework microsoft-teams


【解决方案1】:

您需要用户 (User-B) 的唯一 ID 和租户 ID 来启动 1:1 proactive conversation。通常,这些是通过fetching the team roster 或用户interacts with your bot in a channel 从团队上下文中获取的。

请查看sample code

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-23
    • 2021-11-06
    • 2019-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多