如何在使用 Microsoft Bot Framework 构建的 Skype Bot 上接收文件?

How to receive files on Skype Bot Built with the Microsoft Bot Framework?

我正在使用 Microsoft Bot Builder Python SDK 构建一个机器人并将其托管在 Heroku 上。我正在尝试使用 _handle_incoming_attachment and _download_attachment_and_write methods of the attachments bot code and facing an issue when sending a file to Skype. When a file is sent via the bot emulator (when the bot is running locally or via the test tool on the Bot Framework portal 实现发送到机器人的文件(用于由机器人应用程序保存和处理它)它被机器人成功接受和处理。但是当从 Skype 发送时,机器人应用 returns "401 Unauthorized" 响应。

2021-02-26T12:51:29.525003+00:00 app[web.1]: HTTP Error 401: Unauthorized

附件机器人的方法中有什么地方不足以让 Skype 接受文件?

我发现从 Skype 发送的附件保存在 Skype 服务器上,但没有直接发送给机器人。所以我只使用适当的 Python 工具实现了问题 "How to read attachment content from bot framework C#?" 中针对 C# 描述的附件上传方法,现在可以成功接受和处理文件。