skype-bots

Upload image to Skype BOT

ぐ巨炮叔叔 提交于 2019-12-04 10:43:40
I have a bot develop with Microsoft Bot Framework, and in Debug run correctly After the install on Skype, after the upload the image I have a link like this https://df-apis.skype.com/v2/attachments/0-eus-d4-7e19a097c62f5fc21dd53eabfa19d85e/views/original The code is very simply and run without skype if ((activity.Attachments != null) && (activity.Attachments.Count > 0)) { analysisResult = await AnalyzeUrl(activity.Attachments[0].ContentUrl); } ........ How do I find the picture that I sent? According to this comment , to fetch an attachment, the GET request should contain JwtToken of the bot

Can we build Skype bots for “Skype for Business”?

爱⌒轻易说出口 提交于 2019-12-04 00:28:47
I've seen examples of bot programming that work with "Skype". Is it possible to develop enterprise bots that run on "Skype for Business" using Microsoft's Bot/Cognitive service tools/framework? Skype for Business is not yet supported by Bot Framework . To find all the messaging channels that are supported visit the Bot Framework's documentation site . The Microsoft Bot Framework now officially supports Skype for Business as a channel: Skype for Business Bot Framework (Preview) (As of writing this its in Preview mode, so things may change in the future. But at least its there.) Skype for

Skype REST API python starting conversation

天涯浪子 提交于 2019-12-02 15:59:22
问题 Just added my bot Jessie to contacts. Now trying to start conversation and nothing is works import requests import requests.auth as auth import json url = "https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token" headers = {'Content-Type' : 'application/x-www-form-urlencoded', 'Host' : 'login.microsoftonline.com' } r = requests.post(url, data="grant_type=client_credentials&client_id=ID&client_secret=SECRET&scope=https%3A%2F%2Fapi.botframework.com%2F.default") print(r.content)

Skype REST API python starting conversation

不想你离开。 提交于 2019-12-02 09:48:38
Just added my bot Jessie to contacts. Now trying to start conversation and nothing is works import requests import requests.auth as auth import json url = "https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token" headers = {'Content-Type' : 'application/x-www-form-urlencoded', 'Host' : 'login.microsoftonline.com' } r = requests.post(url, data="grant_type=client_credentials&client_id=ID&client_secret=SECRET&scope=https%3A%2F%2Fapi.botframework.com%2F.default") print(r.content) jsonAuth = json.loads(r.content) print(jsonAuth['token_type'] + ' ' + jsonAuth['access_token']) headers2 =

Skype bot can not be added to group chat

依然范特西╮ 提交于 2019-11-30 09:43:09
问题 I'm developing a bot for Skype and enabled setting that allows to add this bot to Group Chats. However, when I click to "Add People" button, I can see only the real people, but Skype Bots are hidden there (even the official ones). There is an official doc that Skype bot can be added to the group chat as regular Skype account, but I am not able to do it. My bot is not published, but one on one conversation works well. Also, in the private chat with Bot I can add people to conversation and thus

Find Username of skype from Microsoft Bot Framework Channel

 ̄綄美尐妖づ 提交于 2019-11-28 21:56:22
I have implemented bot application for Skype using Microsoft Bot Framework (version 3.0.0.59). I implemented how to retrieve the Skype Name & Id but I'm not being able to retrieve the username of the Skype account. How can I get username of my Skype account? It's not possible. Since the v3 version of the API the user is now represented by a unique user ID per bot . This is to provide an extra layer of privacy to the users (pretty much like Facebook). In the From property of the MessageActivity you will only find the Id and the Name but not the username //Answer if(activity.From.Name != null)

Send an image rather than a link

别来无恙 提交于 2019-11-27 23:06:22
I'm using the Microsoft Bot Framework with Cognitive Services to generate images from a source image that the user uploads via the bot. I'm using C#. The Cognitive Services API returns a byte[] or a Stream representing the treated image. How can I send that image directly to my user? All the docs and samples seem to point to me having to host the image as a publically addressable URL and send a link. I can do this but I'd rather not. Does anyone know how to simple return the image, kind of like the Caption Bot does? Jim Lewallen You should be able to use something like this: var message =

Send an image rather than a link

浪子不回头ぞ 提交于 2019-11-26 21:19:31
问题 I'm using the Microsoft Bot Framework with Cognitive Services to generate images from a source image that the user uploads via the bot. I'm using C#. The Cognitive Services API returns a byte[] or a Stream representing the treated image. How can I send that image directly to my user? All the docs and samples seem to point to me having to host the image as a publically addressable URL and send a link. I can do this but I'd rather not. Does anyone know how to simple return the image, kind of