telegram-telethon

Automate Telegram messaging and manage Claude sessions via a Telethon-based daemon.

345|52|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/glebis/claude-skills --skill telegram-telethon-glebis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram-telethon
Source: https://github.com/glebis/claude-skills/tree/main/telegram-telethon
Command: npx skills add https://github.com/glebis/claude-skills --skill telegram-telethon-glebis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive Telegram automation and bot orchestration by combining Telethon-based messaging with Claude Code integration. This enables persistent monitoring, background Claude session spawning per chat, and end-to-end workflows from message intake to automated responses.

Core Features & Use Cases

  • Telethon-based Telegram automation: send/receive messages, monitor chats, and manage media.
  • Daemon-enabled bot sessions: background Claude Code sessions spawned per chat as needed.
  • CLI-driven setup and configuration: interactive and non-interactive flows for credentials, triggers, and daemon settings.
  • Extensible, rule-based routing: triggers with chat matching, regex patterns, and configurable actions.

Quick Start

Configure API via tg.py setup, then launch the daemon with tgd.py start to begin automation.

Frequently Asked Questions about telegram-telethon

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

FAQPage Schema
How do I automate Telegram message monitoring and responses using Telethon?

You can automate Telegram interactions by running a Telethon-based daemon that monitors chats and spawns background Claude sessions. It handles message automation, media management, and rule-based routing for personal and group chats.

How do I set up a Telegram daemon for background chat automation?

Configure API credentials and triggers using an interactive or non-interactive CLI setup flow, then launch the daemon process. This enables persistent chat monitoring and automated background session management across personal and group chats.

Can I spawn Claude Code sessions automatically from Telegram chat messages?

Yes, the daemon spawns background Claude Code sessions per chat as needed. It monitors incoming Telegram messages and triggers automated session spawning based on configurable chat matching and regex patterns.

How does rule-based routing work for Telegram chat triggers?

Rule-based routing matches incoming Telegram messages against chat IDs and regex patterns to trigger configurable actions. This allows targeted message automation and background session spawning across specific personal and group chats.

Do I need to configure API credentials before starting Telegram automation?

Yes, Telegram API credentials must be configured before starting automation. The CLI setup process provides interactive and non-interactive flows to input credentials, define triggers, and establish daemon settings for secure messaging.