tg

Send Telegram messages and file attachments from the command line.

3|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/Garfield1002/tg-rs --skill tg-garfield1002
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tg
Source: https://github.com/Garfield1002/tg-rs/tree/main
Command: npx skills add https://github.com/Garfield1002/tg-rs --skill tg-garfield1002

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

tg simplifies sending Telegram messages directly from the command line, enabling quick notifications, file attachments, and replies without leaving the terminal.

Core Features & Use Cases

  • Send messages from CLI with optional parse mode and silent notifications
  • Attach files as documents to share more context
  • Listen for replies and manage per-profile configurations seamlessly
  • Manage setup, token storage, and chat IDs via config files

Quick Start

Install Rust, clone the repo, build the project, install the binary, and run tg 'Hello, World!' to send a message.

Frequently Asked Questions about tg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send Telegram messages from the command line?

You can send Telegram messages from the command line by configuring a bot token and chat ID, then executing the tool with your text payload to deliver notifications directly from terminal sessions or scripts.

Can I attach files to Telegram notifications from a CLI script?

Yes, you can attach files as documents to your Telegram notifications from a CLI script, allowing you to share additional context or reports directly from automated workflows and terminal commands.

Do I need a Rust toolchain to send Telegram messages from the terminal?

Yes, you need a Rust toolchain installed to build the binary from the cloned repository before configuring your bot token and chat ID to send Telegram messages from the terminal.

What is the best way to send silent Telegram notifications in CI workflows?

The best way to send silent Telegram notifications in CI workflows is using the CLI's silent sending option, which delivers messages without alert sounds, and per-profile configurations to manage chat IDs.

Does this Telegram CLI tool support storing bot tokens in Secret Service?

Yes, the Telegram CLI tool supports Secret Service for secure token storage when available, managing setup, chat IDs, and per-profile configurations via local config files.

Can I listen for replies after sending a Telegram message from the terminal?

Yes, you can listen for replies and manage interactive updates after sending a Telegram message from the terminal, enabling two-way communication within automated scripts and interactive sessions.