skip to Main Content

I used Conversation.Id + ServiceUrl as unique id of Conversation id for many channels (Skype, Telegram, FaceBook). After last botframework update (I think) ServiceUrl changed from https://skype.botframework.com to https://smba.trafficmanager.net/apis/

What I can use as unique conversation id for all channels?

2

Answers


  1. Yes, it seems it changed some time ago per these threads (#1, #2, #3). I think you should be able to use Conversation.Id + activity.ChannelId.

    Login or Signup to reply.
  2. Conversation.Id + serviceUrl is quite danger combination.
    In official documentation it’s said that we should not rely on them as in case of serviceUrl:

    enter image description here
    and Conversation.Id is unique per channel as is stated here:
    enter image description here

    Consider using these combinations which are unique:

    activity.ChannelId + activity.From.Id – for saving user data
    conversation.Id + activity.ChannelId – for saving channel data

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search