Getting Skype Identity In Bot Framework?

十年热恋 提交于 2019-12-12 09:02:08

问题


I have successfully written a simple bot application have it communicating within Skype.

I've tried to personalise a welcome message to a user when they say 'Hello'. However I can't seem to get their Skype display name or email from the 'From' ChannelAccount field. The name and address have strange values. For example for one user they return something in the format '8:skypename' and for another user they return '4:564:differentskypename'. The values are consistent for a specific user, but the format is different.

Does anyone know if you can get at the user's basic Skype information directly? Or do you need separate calls in order to get it?

Thanks in advance


回答1:


There is currently no support for getting a user's Skype information (other than their Skype handle). For the handle, simply strip of the prefix (i.e. "8:"). (These prefixes are are the ones returned by the Skype api).




回答2:


Skype bots receive a unique user identity such as 29:2hJJkjmGn4ljB2X7YYEju-sgFwgvnISvE6G3abGde8ts - which is different to a user's Skype ID (referred as handle above). Each message also contains the user's display name which should be used for.

e.g.

"from": {
"id": "29:2hJJkjmGn4ljB2X7YYEju-sgFwgvnISvE6G3abGde8ts",
"name": "Display Name"
}


来源:https://stackoverflow.com/questions/36617144/getting-skype-identity-in-bot-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!