[英]Debug msft teams bot channel conversation
I have a bot that collects information in a private chat from User A about User B and then sends it to User B. I am collecting the information via Dialog and then formatting a HeroCard to be sent. 我有一个机器人,它通过与用户A的私人聊天收集有关用户B的信息,然后将其发送给用户B。我正在通过Dialog收集信息,然后格式化要发送的HeroCard。 I was using the Bot Emulator to test the private chat code, but I'm unable to test creating a new conversation () in the emulator without getting a 500 InternalServerError. 我使用的是Bot仿真器来测试私人聊天代码,但是如果没有收到500 InternalServerError,就无法测试在仿真器中创建新的对话()。 When I deploy the code and integrate the bot into an existing Teams channel I receive 400 Bad Request responses. 当我部署代码并将漫游器集成到现有的Teams频道中时,我收到400个错误请求响应。
Is there a tool to use that can help me debug creating a new conversation locally? 有没有可以使用的工具,可以帮助我在本地调试创建新对话?
You need the user's (User-B) unique ID and tenant ID to start 1:1 proactive conversation . 您需要用户(User-B)的唯一ID和租户ID才能开始1:1主动对话 。 Typically, these are obtained from a team context, either by fetching the team roster or when a user interacts with your bot in a channel . 通常,这些是从团队上下文中获取的 ,方法是获取团队花名册或当用户在通道中与您的漫游器进行交互时 。
Please check the sample code . 请检查示例代码 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.