Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Enable snapshot images in Slack notifications #3025

Open
jonfairbanks opened this issue Mar 15, 2025 · 4 comments
Open

[feature] Enable snapshot images in Slack notifications #3025

jonfairbanks opened this issue Mar 15, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@jonfairbanks
Copy link

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!

@jonfairbanks jonfairbanks added the enhancement New feature or request label Mar 15, 2025
@dgtlmoon
Copy link
Owner

Hmm where in the API docs does slack say it supports images on the message? https://api.slack.com/methods/chat.postMessage

@dgtlmoon
Copy link
Owner

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

@jonfairbanks
Copy link
Author

Yea, these would probably have to go as a file.upload with an included comment.

https://api.slack.com/methods/files.upload/code

@dgtlmoon
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants