Reputation: 51
I'm building a Skype bot using Microsoft's framework and I want to recognize the users. can anyone give suggestions on how to do it? The users should be recognized in order to give them authorization for tasks the bot preforms so it must be something that never changes and can be stored on a database. The only thing I saw was "ServiceUrl".
thanks!
Upvotes: 0
Views: 50
Reputation: 1577
You can get the unique user id like below:
var userId = Context.Activity.From.Id;
This will always give you the user ID of the channel they reside on. In your case it will be their Skype ID.
Upvotes: 1