I really liked ntfy.sh but didn't like the fact it was unecrypted.
Usage: ntfy [OPTIONS]
Send notification to Telegram channel.
Options:
--title TEXT Title for the notification
--text TEXT Text for the notification
--channels List joined Telegram channels
--help Show this message and exit.
- Clone the repository.
- Build the application:
poetry build
- Install the application:
pipx install dist/ntfy-0.1.3.tar.gz
- Create a config directory:
- Linux: `~/.config/ntfy'
- Windows
~/AppData/Roaming/ntfy
- Copy-Paste the following into the config directory as
config.toml
and add your bot details:
[telegram]
api_id = 000000000
api_hash = "YOUR-API-HASH"
channel_id = -10000000
bot_token= "YOUR-BOT-TOKEN"
- Execute
ntfy
and register session.
See how to create a Telegram Bot here: https://core.telegram.org/bots/features#creating-a-new-bot