axisrow/tg_content_factory

35 stars · Last commit 2026-10-19

Telegram automation for coding agents — Claude Code plugin + tg-agent CLI. Read/send messages, manage channels, media, analytics, content pipelines. Multi-account, flood-safe, Telethon-powered.

README preview

# TG Agent

[![Release](https://img.shields.io/github/v/release/axisrow/tg_content_factory)](https://github.com/axisrow/tg_content_factory/releases)

Telegram automation for **coding agents** — Claude Code, OpenCode, Codex. Ships as a **Claude Code plugin** (skill + CLI): install the plugin and your agent can act on Telegram for you — read and send messages, manage channels and chats, download media, run LLM content pipelines. The content factory (collect → search → generate → publish) is one module among many.

[Русская версия](README.ru.md)

## How it works

- **Skill + Claude Code plugin** — this repo ships a [skill](skills/tg-agent/SKILL.md) (installed from the plugin marketplace, or copied manually) that teaches your agent the command catalog, the runtime model and safety rules. The skill drives the CLI — no MCP tool surface eating your context window.
- **`tg-agent` CLI** — the product surface: ~250 commands covering the full Telegram spectrum (`channel`, `dialogs`, `messages`, `search`, `pipeline`, `photo-loader`, `analytics`, `scheduler`, `account`, …). Every command is a self-contained one-shot: it opens a Telegram connection, does the work, exits. No daemon required.
- **`tg-agent worker`** — optional long-lived process for scheduled collection and queued sends.

## Quick Start (coding agents)

### Prerequisites

- Python 3.11+
- Telegram API credentials from [my.telegram.org/apps](https://my.telegram.org/apps)

View full repository on GitHub →