thp / urlwatch

Watch (parts of) webpages and get notified when something changes via e-mail, on your phone or via other means. Highly configurable.
https://thp.io/2008/urlwatch/
Other
2.81k stars 352 forks source link

Optimizing request for telegram reporter #691

Closed zackdvd closed 2 years ago

zackdvd commented 2 years ago

Hi,

first things first: Thanks for this great project! Very useful, especially watching for corona test results ;-)

My request: Would it be possible to change the formatting of telegram messages? There are multiple lines of "====" and that could be (hopefully) an easy task to reduce them and make a way more better UX. telegram - 1

Thank you all!

neutric commented 2 years ago

You can change this aspect yourself by modifying the line_length setting with urlwatch --edit-config. Note: This affects all reporters that inherit from TextReporter, which matters if you also receive notifications through other channels such as email. If this is indeed a problem, don't edit the default config but create a separate one for the targets you want reporting through telegram for as described in https://github.com/thp/urlwatch/issues/507.

mborsetti commented 2 years ago

The webchanges fork may be what you're looking for as it is optimized for HTML. It has an improved telegram reporter that uses MarkdownV2 and preserves most HTML formatting, including clickable links, bolding, underlining, italics and strikethrough.

zackdvd commented 2 years ago

Thank you neutric and mborsetti for these two great hints! I'll try both I think :-)