-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
failed to send telegram notification, can't parse entities character '#' is reserved #1178
Comments
From a glance, it doesn't seem that you're doing anything wrong. Apprise appears to be passing a markdown payload I'd have expected. It seems weird that it's being rejected on characters that simply make sense (and we wouldn't want to escape). What happens if you set the markdown version to v1? |
hello @caronc, so I just tested with |
Seems strange that Telegram would have an issue with Either way, the bug doesn't appear to be on the Apprise side, but maybe i can try to make Apprise more accommodating to bad characters we learn about like the one you're sharing here. |
I switched the default markdown to v1 so others don't have this issue... a period isn't uncommon to be in a string, it shouldn't fial as much as it is for you or anyone. Not only with the default version of the Telegram Apprise Plugin switch back to 'v1 Under all other circumstances, the other characters will be escaped. |
📣 Notification Service(s) Impacted
Telegram
🐞 Describe the bug
I am working on a script to send telegram notification after github pr merged webhook and sending the message without
format=markdown
works except it did not rendered the markdown, adding the option resulted in the errorFailed to send Telegram notification to -123123123: Bad Request: can't parse entities: Character '#' is reserved and must be escaped with the preceding '\', error=400
I used this command to send the message
apprise -vvv -t 'Github PR Merged' -b "$MESSAGE_BODY" "tgram://$TELEGRAM_BOT_TOKEN/$TELEGRAM_CHAT_ID?format=markdown"
💡 Screenshots and Logs
💻 Your System Details:
🔮 Additional context
I tried this
apprise -vvv -i markdown -t 'Github PR Merged' -b "$MESSAGE_BODY" "tgram://$TELEGRAM_BOT_TOKEN/$TELEGRAM_CHAT_ID?format=markdown"
it works only when I remove the URL in the repository lineRepository: https://httpbin.org
when I include the repository line with URL, it shows this error instead
below is my
webhook
+apprise
setupthe
github-pr-merged-then-telegram-notify.sh
the
hooks.json
testing and simulate the github webhook
The text was updated successfully, but these errors were encountered: