feat(telegram): load config from telegram.toml

This commit is contained in:
banteg
2025-12-28 20:37:54 +04:00
parent 0a984e228a
commit 6338c9f635
8 changed files with 187 additions and 34 deletions
+4 -6
View File
@@ -6,15 +6,13 @@ Send Codex completion summaries to Telegram with safe Markdown rendering and sta
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.json`.
3. Create your [Telegram creds](https://t.me/botfather) file at `~/.codex/telegram.toml`.
Example:
```json
{
"bot_token": "123456:ABCDEF...",
"chat_id": "462722"
}
```toml
bot_token = "123456:ABCDEF..."
chat_id = 462722
```
## Configure