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

Special characters should be escaped when sending to Telegram #8

Closed
pepsifire opened this issue Feb 28, 2023 · 1 comment
Closed

Special characters should be escaped when sending to Telegram #8

pepsifire opened this issue Feb 28, 2023 · 1 comment
Assignees

Comments

@pepsifire
Copy link
Member

Currently sending the characters <, > and & will fail due to the HTML parser thinking they are a part of a HTML tag in the Telegram sending function.

They should be escaped accordingly: "All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with &lt;, > with &gt; and & with &amp;)."

See https://core.telegram.org/bots/api#html-style for more details.

An alternative would be switching to MarkdownV2 parse_mode.

jkarppinen added a commit to jkarppinen/torvi that referenced this issue Feb 12, 2025
@jkarppinen jkarppinen self-assigned this Feb 12, 2025
jkarppinen added a commit that referenced this issue Feb 16, 2025
…sage

[telegram] escape messages with special chars #8
@jkarppinen
Copy link
Member

Implemented in PR #13, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants