Closed frank42hh closed 1 year ago
You can only send valid markdown when using the markdown format (--format markdown
), best for your case would be to send without any formatting enabled. If you format manually in your script try using html formatting (--format html
).
Hi,
I just stumbled upon this possible bug (imho):
While markdown works fine ( echo "birthday Fred" | telegram-send ), the script throws the above exception when finding an uneven amount of markdown characters ( echo "birthday Fred [*1980]" | telegram-send ).
In a manual environment, one can circumvent this by quoting the asterisk ( echo "birthday Fred [\*1980]" | telegram-send ), but there are use cases where this is impossible.
For example, I'm fetching calendar entries per ical from a Google Calendar, and there are entries like "birthday Fred (*1980)" for example. The fetching script can't determine which one of the asterisks is to be quoted. But since the calendar entries are mostly generated, I can't add quotes there either.
So, is there any solution other than "Don't use asterisks in your input data"?