appleboy / telegram-action

GitHub Action that sends a Telegram message.
https://github.com/marketplace/actions/telegram-message-notify
MIT License
846 stars 108 forks source link

emoji support? #36

Open alanhe421 opened 3 years ago

alanhe421 commented 3 years ago

see https://github.com/ikatyang/emoji-cheat-sheet

image

image

MysteriousGear commented 3 years ago

Hey, try putting the star emoji inside your message text, it worked for me.

:star:, come on! --> ⭐, come on!.

alanhe421 commented 3 years ago

Hey, try putting the star emoji inside your message text, it worked for me.

:star:, come on! --> ⭐, come on!.

the format is markdown?

my code is here. but not work. This is impossible for you.

code see here.

https://github.com/alanhg/alfred-workflows/commit/c9ed8fd2550459f57b9b4b508bd321323e52ebd4

MysteriousGear commented 3 years ago

Hey, try putting the star emoji inside your message text, it worked for me. :star:, come on! --> ⭐, come on!.

the format is markdown?

my code is here. but not work. This is impossible for you.

code see here.

alanhg/alfred-workflows@c9ed8fd

See my comment at https://github.com/alanhg/alfred-workflows/commit/c9ed8fd2550459f57b9b4b508bd321323e52ebd4

dsentker commented 1 year ago

I can confirm that emojis are ok, just use the emoji via copy-paste (as mentioned by @MysteriousGear ). If format: markdown is used, it is not possible to insert an emoji for me.

2023/10/06 09:59:59 Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 173

Here is an example to use the emoji:

        with:
          to: ${{ secrets.TELEGRAM_TO }}
          token: ${{ secrets.TELEGRAM_TOKEN }}
          message: |
            ⭐ Update: ${{ github.event.release.name }} (Version ${{ github.ref_name }})