/ntfy

Ntfy CLI but with Telegram

Primary LanguagePythonMIT LicenseMIT

NTFY

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.

Installation & Setup

  1. Clone the repository.
  2. Build the application: poetry build
  3. Install the application: pipx install dist/ntfy-0.1.3.tar.gz
  4. Create a config directory:
    • Linux: `~/.config/ntfy'
    • Windows ~/AppData/Roaming/ntfy
  5. 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"
  1. Execute ntfy and register session.

See how to create a Telegram Bot here: https://core.telegram.org/bots/features#creating-a-new-bot