Use tg to send Telegram messages, attach files, and listen for replies from the command line. Trigger when the user wants to send notifications, share files, or receive messages via Telegram.
Scanned 5/27/2026
Install via CLI
openskills install Garfield1002/tg-rs---
name: tg
description: Use tg to send Telegram messages, attach files, and listen for replies from the command line. Trigger when the user wants to send notifications, share files, or receive messages via Telegram.
user-invocable: true
---
# tg - Telegram CLI
`tg` sends messages and files to a pre-configured Telegram chat.
## Setup
Ask the user to run `tg setup` once to configure the bot token and chat ID.
You cannot do the setup alone.
## Sending messages
```sh
# Positional arguments
tg "Hello, World!"
tg hello world
# From stdin
echo "build done" | tg
cat log.txt | tg
# Escape sequences
tg -e "line one\nline two"
# Parse modes
tg -m markdown "*bold* _italic_"
tg -m html "<b>bold</b>"
# Silent (no notification)
tg -s "low priority alert"
```
## Attaching files
```sh
# Single file
tg attach report.pdf
# Multiple files / glob
tg attach *.log
tg attach foo.txt bar.c
# Silent
tg attach -s backup.tar.gz
```
## Interactive mode
Stream stdin updates by editing a single message:
```sh
some-command | tg -i
some-command | tg -i -f 2 # update every 2s
```
## Listening for replies
```sh
tg listen # prints incoming messages, stops on /eof
tg listen > out.txt
```
## Config management
```sh
tg config show # print config path and contents
tg config reset # delete config for re-setup
```
## Library usage
```rust
use tg_cli::telegram;
#[tokio::main]
async fn main() {
telegram!("build {} complete", 42);
}
```
## Key flags
| Flag | Description |
| --------- | ----------------------------------- |
| `-e` | Interpret escape sequences |
| `-n` | Strip trailing newline |
| `-m MODE` | Parse mode: `markdown` or `html` |
| `-i` | Interactive mode (edit one message) |
| `-f SECS` | Interactive update frequency |
| `-s` | Silent (no notification) |
| `-q` | Quiet (suppress non-error output) |
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.
Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.
Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.
Run a single Terminal-Bench problem through Paperclip in a bounded, human-in-the-loop improvement cycle until the smoke passes, the board rejects the next fix, the iteration budget is exhausted, or a real blocker is named. Each iteration runs a bounded smoke against an isolated Paperclip App worktree, captures artifacts, diagnoses the exact stop point with `/diagnose-why-work-stopped`, requests board confirmation before any product fix, then reruns against the same worktree. Use whenever an i...