caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
11.81k stars 413 forks source link

Adding EMOJI support to Apprise - ?emojis=yes to URL and --emojis for CLI #649

Closed neema80 closed 10 months ago

neema80 commented 2 years ago

:bulb: The Idea

Passing UNICODE would be nice to allow using emojis.

:hammer: Breaking Feature

just making the app parse the message and in case of finding a UNICODE it could convert it to EMOJI's or maybe if using markdown as the format then the structure of :emoji: should be converted to the format that telegram understands.

neema80 commented 2 years ago

actually managed to do that by using:

apprise -vvvv -i "html" -t "new message" -b " 😀"

I've used the code from here: https://www.w3schools.com/charsets/ref_emoji_smileys.asp

caronc commented 2 years ago

It's a good idea, but it would add a bit of overhead to further parse all of the data passed in. So it would have to be an option that defaults to being off.

# enable overhead and further parse input 
apprise -vv --emojis -b ":smile:" -t "title"

👆 Something like that I'm guessing?

Thoughts?

ntfc commented 10 months ago

Would it be more complicated to add an emojis attribute instead? e.g apprise -vv -b ":smile:" -t "title" tgram://123456789:abcdefg_hijklmnop/12315544/?emojis=Yes

caronc commented 10 months ago

i would allow the over-ride like you have identified and also the --emojis from the command line (both would work) :). I haven't had time to address this yet, but i haven't forgotten either :slightly_smiling_face:

caronc commented 10 months ago

Emoji support completed and merged into master. It will be part of the next release.