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
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.
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
:and
Conversation.Id
is unique per channel as is stated here:Consider using these combinations which are unique:
activity.ChannelId + activity.From.Id
– for saving user dataconversation.Id + activity.ChannelId
– for saving channel data