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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ef8e74d36d98d5d91b1a0263235d490523d1d927d4c06096ed5bca02ec9c91
|
|
| MD5 |
749d6efd3da16d381f54f8629ff1e2f3
|
|
| BLAKE2b-256 |
663b24e558f421e58f616c3355f2b1bda4b50440f4563a4fee42ab92f403b167
|
Provenance
The following attestation bundles were made for os_notif_telegram-0.1.1.tar.gz:
Publisher:
publish.yml on go2run/os-notif-telegram
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
os_notif_telegram-0.1.1.tar.gz -
Subject digest:
64ef8e74d36d98d5d91b1a0263235d490523d1d927d4c06096ed5bca02ec9c91 - Sigstore transparency entry: 984469514
- Sigstore integration time:
-
Permalink:
go2run/os-notif-telegram@649165ed1a1a65397cf467dc8b5ecbe5bf044402 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/go2run
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@649165ed1a1a65397cf467dc8b5ecbe5bf044402 -
Trigger Event:
release
-
Statement type:
File details
Details for the file os_notif_telegram-0.1.1-py3-none-any.whl.
File metadata
- Download URL: os_notif_telegram-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a92f9ddbae4b3d49202600b0d98ca7d78d6eda001639b1f1afc04d427d615ee
|
|
| MD5 |
1428d1b50c3cf41c4a3064e2cb01a0fb
|
|
| BLAKE2b-256 |
0900351a0ca4f8819d9f6d8e191f1a1ce3146aef1762dd0ef41cbd108d65fe4c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
os_notif_telegram-0.1.1-py3-none-any.whl -
Subject digest:
3a92f9ddbae4b3d49202600b0d98ca7d78d6eda001639b1f1afc04d427d615ee - Sigstore transparency entry: 984469534
- Sigstore integration time:
-
Permalink:
go2run/os-notif-telegram@649165ed1a1a65397cf467dc8b5ecbe5bf044402 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/go2run
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@649165ed1a1a65397cf467dc8b5ecbe5bf044402 -
Trigger Event:
release
-
Statement type: