[feature] Snapshot images in Slack notifications
Version and OS v0.49.4 on Docker
Is your feature request related to a problem? Please describe.
I currently have ChangeDetection integrated with Browserless for taking snapshots of websites to detect changes. I also have a notification integration with Slack and have toggled the Attach screenshot to notification option.
Unfortunately, when notifications come into Slack, they do not contain a screenshot. The Slack API does support attachments in messages posted via their API however.
Describe the solution you'd like When a change is detected and Slack is notified, a snapshot is shared in the Slack message body.
Describe the use-case and give concrete real-world examples Notification body:
There's a new update available!
{{watch_url}}
If any additional details or examples are needed, please let me know!
Hmm where in the API docs does slack say it supports images on the message? https://api.slack.com/methods/chat.postMessage
it looks like theres two ways
- slack doesnt support adding an image with a message, BUT you can link to some external image URL
- slack will let you upload a file, get the file URL, and then link the file (using the file URL) from a slack message
i dont think this is supported in caronc/apprise
Yea, these would probably have to go as a file.upload with an included comment.
https://api.slack.com/methods/files.upload/code
Any chance you can add me to your slack? it looks like apprise does actually support it when in self.mode is SlackMode.BOT:
https://github.com/caronc/apprise/blob/efd9d5cd676304a198d3d993ee1face8b7f6d55c/apprise/plugins/slack.py#L644-L680
@jonfairbanks any chance you could find a way to add me to your slack organisation or some private channel only to test this?
Can you share your email and I'll get you onboarded?
I also see an open PR on apprise mentioning support for the latest Slack API. Perhaps these changes are needed to support that.
https://github.com/caronc/apprise/pull/1295