Satadhi Halder
Satadhi Halder

Reputation: 29

is conversation.id for ms teams bot unique?

In ms teams bot. for group chat and for personal chat, I received following conversation object.

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. Is the id for both the conversation unique ? Do the id changes in case of personal or group chat after some days ?
  2. Can i use it as unique identifier ?

Upvotes: 0

Views: 1013

Answers (1)

Manish-MSFT
Manish-MSFT

Reputation: 276

->Do the id changes in case of personal or group chat after some days ?

No, it doesn't change after few days. The only time it changes is when you re-add the bot to channel.

->Can I use it as unique identifier ?

->Is the id for both the conversation unique ?
Answer for above two questions is detailed out here

Upvotes: 1

Related Questions