Skip to main content

Forward OS notifications to Telegram

Project description

os-notif-telegram

Forward OS notifications to Telegram in real time.

Currently supports: Windows 10 / 11

Requirements

  • Python 3.9+

Installation

pipx install os-notif-telegram

pipx automatically adds the command to your PATH so it works from any terminal. If you don't have pipx yet:

pip install pipx
pipx ensurepath

Then open a new terminal and install:

pipx install os-notif-telegram

Quick Start

1. Create a Telegram bot

Talk to @BotFather/newbot → copy the bot token.

2. Get your Chat ID

Talk to @userinfobot → copy the id number.

3. Configure

os-notif-telegram setup

Follow the prompts to enter your bot token and chat ID. Config is saved to %APPDATA%\os-notif-telegram\config.json — never committed to any repo.

4. Start forwarding

os-notif-telegram start

The program minimises to the system tray. You can close the terminal window.

Commands

Command Description
os-notif-telegram setup Interactive setup wizard
os-notif-telegram config Show current configuration
os-notif-telegram start Start forwarding (system tray)
os-notif-telegram start --no-tray Start in terminal (foreground)
os-notif-telegram stop Stop the running forwarder
os-notif-telegram status Show whether the forwarder is running
os-notif-telegram test Send a test notification to verify Telegram is working
os-notif-telegram --version Show version

Non-interactive setup

os-notif-telegram setup --token "YOUR_TOKEN" --chat-id "YOUR_CHAT_ID"

Windows Notification Access

If you see an "Access denied" error, enable notification access:

Settings → Privacy & security → Notifications

Enable access for your terminal application (e.g. Windows Terminal, PowerShell).

How it Works

  • Listens to OS notification APIs
  • On each new notification, extracts app name, title, and body
  • Sends a formatted message to your Telegram chat via the Bot API
  • Deduplicates notifications by ID and content to prevent spam

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

os_notif_telegram-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

os_notif_telegram-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file os_notif_telegram-0.1.1.tar.gz.

File metadata

  • Download URL: os_notif_telegram-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for os_notif_telegram-0.1.1.tar.gz
Algorithm Hash digest
SHA256 64ef8e74d36d98d5d91b1a0263235d490523d1d927d4c06096ed5bca02ec9c91
MD5 749d6efd3da16d381f54f8629ff1e2f3
BLAKE2b-256 663b24e558f421e58f616c3355f2b1bda4b50440f4563a4fee42ab92f403b167

See more details on using hashes here.

Provenance

The following attestation bundles were made for os_notif_telegram-0.1.1.tar.gz:

Publisher: publish.yml on go2run/os-notif-telegram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file os_notif_telegram-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for os_notif_telegram-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a92f9ddbae4b3d49202600b0d98ca7d78d6eda001639b1f1afc04d427d615ee
MD5 1428d1b50c3cf41c4a3064e2cb01a0fb
BLAKE2b-256 0900351a0ca4f8819d9f6d8e191f1a1ce3146aef1762dd0ef41cbd108d65fe4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for os_notif_telegram-0.1.1-py3-none-any.whl:

Publisher: publish.yml on go2run/os-notif-telegram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page