telegram-action icon indicating copy to clipboard operation
telegram-action copied to clipboard

Markdown escaping issue

Open rc5hack opened this issue 2 years ago • 3 comments

This job step always fails:

    - name: Send telegram notification
      if: ${{always()}}
      uses: appleboy/telegram-action@master
      with:
        to: ${{secrets.TELEGRAM_CHAT}}
        token: ${{secrets.TELEGRAM_TOKEN}}
        format: markdown
        message: |
          Test *()

Job logs:

Run appleboy/telegram-action@master
  with:
    to: ***
    token: ***
    format: markdown
    message: Test *()
  
  env:
    ...
/usr/bin/docker run --name dc5057a2652147a674d62abf3a4930e7521c7_f86794 --label 0dc505 --workdir /github/workspace --rm -e ...
2023/10/22 18:39:40 Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 5

Should I manually escape chars in message?

rc5hack avatar Oct 22 '23 18:10 rc5hack

Seems to be failing with simple ul as well for me.

Had something like this

feat/do something

* foo bar
* baz
* bar bar

And getting similar error like above

chmelevskij avatar Nov 17 '23 05:11 chmelevskij

Bump.

Issue reproduces with both appleboy/[email protected] and appleboy/[email protected]

rc5hack avatar Oct 16 '24 10:10 rc5hack

maybe also related to #66

rc5hack avatar Oct 16 '24 10:10 rc5hack