1

When a bot chat with a user individually or in a group, the API returns different user ids. How can I know it's the same person?

maalls
  • 749
  • 8
  • 20

1 Answers1

1

Skype user's information fields looks like the following "from": { "id": "29:1DwlGVzj.....", "name": "My Skype Name" } (and bot's id is "28:appId").

This user id is a specific to your bot, it is a hash but the way it is generated is not known (not open-source). But this id is identidical for a unique user when talking individually with the bot or inside a group conversation with the same bot.

See sample here, I just checked:

Direct message between user and bot: enter image description here

Group conversation including same user and same bot: enter image description here

I've hidden some characters of the id in case of... but I confirm they are exactly the same values.


See also questions around the same problems:

Nicolas R
  • 13,812
  • 2
  • 28
  • 57
  • you are right, the issue wasn't the Bot Framework but the library I am using to send message. https://botman.io/ Thanks Nicolas R – maalls Feb 07 '18 at 06:55