chore: move telegram projects to top-level

This commit is contained in:
banteg
2025-12-28 21:31:48 +04:00
parent 5f4f97f529
commit 39c0bcec45
11 changed files with 2 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
# Notify Telegram (Codex)
Send Codex completion summaries to Telegram with safe Markdown rendering and stable list bullets.
## Install
1. Ensure `uv` is installed.
2. Copy the script to `~/.codex/notify_telegram.py`.
3. Create your [Telegram creds](https://t.me/botfather) file at `~/.codex/telegram.toml`.
Example:
```toml
bot_token = "123456:ABCDEF..."
chat_id = 462722
```
## Configure
Add a `notify` entry to `~/.codex/config.toml`:
```toml
notify = ["uv", "run", "-q", "/home/user/.codex/notify_telegram.py"]
```
## Notes
- The script reads `last-assistant-message` and treats it as Markdown.
- Markdown is rendered to HTML, converted to Telegram text/entities via `sulguk`, then posted with `requests`.
- List bullets are normalized from `•` to `-` to keep Telegram output consistent.
## Files
- `notify_telegram.py`: the notifier script