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

How do I attach images to Discord notifications? #100

Closed
namelivia opened this issue Feb 2, 2023 · 5 comments
Closed

How do I attach images to Discord notifications? #100

namelivia opened this issue Feb 2, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@namelivia
Copy link

namelivia commented Feb 2, 2023

I've read through the documentation and afaik Discord should handle notifications, I've tried doing the following post request to my apprise microservice:

curl -X POST http://172.18.0.10:8000/notify/testing -H "Content-Type: application/json" -d '{"attach": ["https://cdn.pixabay.com/photo/2016/03/21/23/25/link-1271843__480.png", "https://cdn.pixabay.com/photo/2016/03/21/23/25/link-1271843__480.png", "https://cdn.pixabay.com/photo/2016/03/21/23/25/link-1271843__480.png"], "body": "test"}'

But on discord it only appears the "test" string. Am I misusing the attachment feature or is it that is not supported by Discord?
Thank you very much!

@namelivia namelivia added the question Further information is requested label Feb 2, 2023
@caronc
Copy link
Owner

caronc commented Feb 3, 2023

Unfortunately the API doesn't support attachments at this time, but you're certainly not the first person to want to do this.

I've been backlogged at my full-time job. But i promise to entertain some of these great ideas soon

@namelivia
Copy link
Author

Unfortunately the API doesn't support attachments at this time, but you're certainly not the first person to want to do this.

I've been backlogged at my full-time job. But i promise to entertain some of these great ideas soon

Ah, nice to know! Do you have any rough estimation on how complex is this? I could even consider helping with this if you are ok with it.

@caronc
Copy link
Owner

caronc commented Feb 4, 2023

It's not too too complex, but not a quick job either. Basically the Apprise library needs to be updated so that it can pass along attachments to an Apprise API server. then the Apprise API server needs to read the data in and then re-attach it (re-routing it) to the endpoints that can use it.

@caronc caronc added enhancement New feature or request and removed question Further information is requested labels Feb 4, 2023
@caronc caronc transferred this issue from caronc/apprise Feb 4, 2023
@caronc
Copy link
Owner

caronc commented Jun 13, 2023

This has been added in the last release. Closing ticket

@caronc caronc closed this as completed Jun 13, 2023
@RaminMT
Copy link

RaminMT commented Jan 3, 2024

Hi
Does this syntax also supported to send attachments to telegram?

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

3 participants