feat: add --parse-mode (plain|markdown|html) to pos communication telegram

This commit is contained in:
Your Name
2026-08-05 14:45:10 +00:00
parent 330a3ba0b4
commit e3762f4074
2 changed files with 16 additions and 5 deletions
+1
View File
@@ -195,6 +195,7 @@ Subcommands that need input prompt interactively when args are omitted.
|---------|----------|
| `pos communication telegram --send "text"` | POSTs `sendMessage` to the Bot API (20s timeout); prints `[+] Message sent to chat <id>` or fails with a nonzero exit |
| `pos communication telegram --send "text" --token <t> --chat-id <id>` | One-shot override of token/chat ID |
| `pos communication telegram --send "text" --parse-mode <mode>` | Send with Telegram formatting; `<mode>` is `plain` (default), `markdown`, or `html` (passed as `parse_mode` to the API). Markdown/HTML use raw Telegram syntax — unescaped characters may be rejected by the API (400) |
| `pos communication telegram test` | Sends a canned test message using the current config |
| `pos communication telegram config` | Shows current config (bot token masked) |
| `pos communication telegram config set TELEGRAM_BOT_TOKEN=...` | Saves a bot token (600 perms) |