【问题标题】:is conversation.id for ms teams bot unique?ms 团队机器人的 conversation.id 是独一无二的吗?
【发布时间】:2021-03-02 21:15:08
【问题描述】:

在 ms 团队机器人中。对于群聊和个人聊天,我收到了以下对话对象。

conversation: {
  isGroup: true,
  conversationType: 'groupChat',
  tenantId: '3fef5931-0c12-4eb9-b22f-xxxxxxx',
  id: '19:abad7298-34e2-4437-ad7d-xxxxxxxxxxxx-224f-4e50-xxxxxxde65@unq.gbl.spaces'
},

conversation: {
  conversationType: 'personal',
  tenantId: '3fef59xxxxxxxxxxxxxxxd03d',
  id: 'a:1fIazkAU3MCwYcbsr1nZcpg_VTMw8OuWxxxxxxxxxxxxKKVpzEgbeiqrnT3B8eM856iyI6G61qoeXU0UXt7XkGpbmi0As9-mV1h2Ywz-Coi'
},
  1. 两个对话的 id 是否唯一?几天后进行个人或群聊时,id会发生变化吗?
  2. 我可以用它作为唯一标识符吗?

【问题讨论】:

  • 对话 ID 是唯一的。时间流逝不会改变。

标签: botframework bots microsoft-teams


【解决方案1】:

->几天后进行个人或群聊时,id 是否会发生变化?

不,几天后它不会改变。唯一的变化是当您将机器人重新添加到频道时。

->我可以用它作为唯一标识符吗?

->两个对话的 id 是否唯一?
以上两个问题的答案已详解here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多