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

pip 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.0.tar.gz (6.2 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.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: os_notif_telegram-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 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.0.tar.gz
Algorithm Hash digest
SHA256 788e5ad089f1278b9a7e0d79725e562dfd2f49e64f81e948afd25530f60ec7a6
MD5 3aa7d72ced24044603fa3f8b315a9b70
BLAKE2b-256 5b84fb39c0bf1f44f516d23d99207a6c8c0bb08413e47deaa3aaa60f68903826

See more details on using hashes here.

Provenance

The following attestation bundles were made for os_notif_telegram-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for os_notif_telegram-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc2c26c039ac1966ffaef6e26f4ab03bf85202d031c33532af04ad96900514b5
MD5 7d3d3629ce32e49bb0cee662e71aafc0
BLAKE2b-256 de4b1f6c17b09054d299b088c942b7ff607169591ede9111f38f96899b0757ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for os_notif_telegram-0.1.0-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