Alexandr Sulimov
Alexandr Sulimov

Reputation: 1924

Conversation.Id is unique? ServiceUrl has changed?

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?

Upvotes: 2

Views: 365

Answers (2)

Just Shadow
Just Shadow

Reputation: 11891

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

Upvotes: 1

Ezequiel Jadib
Ezequiel Jadib

Reputation: 14787

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.

Upvotes: 1

Related Questions