在Bot Framework中获取Skype身份? [英] Getting Skype Identity In Bot Framework?

查看:95
本文介绍了在Bot Framework中获取Skype身份?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功编写了一个简单的bot应用程序,可以在Skype中进行通信.

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

当用户说你好"时,我尝试个性化向用户发送欢迎消息.但是,我似乎无法从发件人" ChannelAccount字段中获取他们的Skype显示名称或电子邮件.名称和地址具有奇怪的值.例如,对于一个用户,他们返回格式为"8:skypename"的内容,对于另一个用户,他们返回"4:564:differentskypename".这些值对于特定用户而言是一致的,但是格式是不同的.

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.

有人知道您是否可以直接获得用户的基本Skype信息?还是您需要单独致电才能获得它?

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?

预先感谢

推荐答案

当前不支持获取用户的Skype信息(Skype句柄除外).对于句柄,只需去除前缀(即"8:")即可. (这些前缀是Skype api返回的前缀.)

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).

这篇关于在Bot Framework中获取Skype身份?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆