我用Slack设置了一个Django REST API,这样我就可以编写一个支持机器人。它工作得很好,因为我可以编写新的消息和响应。但是,我也希望能够返回从Slack检索到的JSON对象。= request.data
if slack_message.get('token') !api to post the message with chat.postMessage
if 'hello' in text.lower
我正在尝试通过API将文件上传到Slack,相同的脚本在本地运行正常(文件已正确上载),但在从服务器运行时失败,返回: {u'ok': False, u'error': u'no_file_data'wf.write(rf.read())
with open('/tmp/' + output_file) as file_content:
r = client.api_call我在这两个平台上都使