Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Missing file comment in incoming SlackFile #78

Closed
aabiryukov opened this issue Jul 25, 2018 · 4 comments
Closed

Missing file comment in incoming SlackFile #78

aabiryukov opened this issue Jul 25, 2018 · 4 comments

Comments

@aabiryukov
Copy link

aabiryukov commented Jul 25, 2018

Additional to issue #9

When SlackConnector deserializing file data it loses file comment. Slack response has file comment in json field: file.initial_comment.comment.
It is major metadata for the file message.

Example of file message with comment:
slack_file_comment

As result, is not possible to get file comment from incoming SlackFile.

@aabiryukov
Copy link
Author

Surpise from slack.
Yesterday Slack changed the format of message with image. Now SlackConnecter has empty file info :(
News (without details): https://get.slack.help/hc/en-us/articles/115004846068-Slack-updates-and-changes#july-2018

New message format has multiple files:

{
. . .
  "text": "USER MESSAGE",
  "files": [
    {
. . .
    }
  ],
}

@Workshop2
Copy link
Member

@Workshop2
Copy link
Member

file.initial_comment.comment isn't a valid property. You can find the message the file was uploaded with under the SlackMessage text

@Workshop2
Copy link
Member

File -> Files released in 4.2.71

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants