For obvious reasons, it is currently useful in Ukraine to constantly check some telegram channels. Most of them has an open preview web-pages, so they can be easily monitored using Bash scripting.
I made a script that periodically downloads the specified channel's html page and, in case of new posts, sends desktop notification and, optionally, transforms the text to speech and reads the message aloud.
$ tgchecker.sh
Usage: tgchecker.sh [OPTIONS] https://t.me/s/channel_name
Options:
-t, --timeout <sec> Timeout between checks, seconds [default: 30]
-n, --notify Throw desktop notification
-v, --voice Perform text-to-speech conversion
-l, --lang <lang> IETF language tag. Language to speak in. [default: en]
-i, --intro <text> Prepend a message to be voiced before main text
-m, --maxlength <words> Limit the text-to-speech length [default: unlimited]
-c, --cut <text> Append a message to be voiced if long text was truncated
-h, --help Show this help
The project is available on my github: https://github.com/noisedsn/telegram-checker
*message on the notification says "Ballistic missile to the Odesa region"