One-click install
npx skills add https://github.com/junghan0611/agent-config --skill telegram-junghan0611
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram
Source: https://github.com/junghan0611/agent-config/tree/main/skills/telegram
Command: npx skills add https://github.com/junghan0611/agent-config --skill telegram-junghan0611

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It enables direct read/write access to Telegram conversations using a user account via tdlib, allowing access to messages that bot APIs cannot read.

Core Features & Use Cases

  • Read recent conversations and messages from Telegram using the tdlib JSON API.
  • Send messages to chats or bots, and manage basic chat histories.
  • Use case: Maintain personal workflows by reading conversations, replying to messages, and archiving important chats across multiple Telegram chats.

Quick Start

Authenticate with tg.py auth, then read glg-claude-bot with tg.py read glg-claude-bot -n 10.

Frequently Asked Questions about telegram

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

FAQPage Schema
How do I read Telegram chat history from my personal account using Python?

Read Telegram chat history from a personal account using Python by authenticating with the tg.py script and executing the read command with a chat name and message limit. It uses tdlib to access messages standard bot APIs cannot read.

Can I send messages to Telegram chats via tdlib instead of the bot API?

Send messages to Telegram chats via tdlib by running the tg.py send command to target specific chats or bots. This approach manages conversations using a user account rather than relying on standard bot API limitations.

What are the requirements to use tdlib for automating Telegram conversations?

Automating Telegram conversations with tdlib requires Python 3, the libtdjson library, and a local session directory for storing authentication state. You must complete an interactive authentication process to link your user account.

Why should I use a tdlib user account instead of the Telegram bot API to read messages?

Use a tdlib user account instead of the Telegram bot API to access messages from past conversations that bots are restricted from reading. Tdlib enables direct read and write access to your personal chat histories across multiple chats.

How do I authenticate my Telegram account for automated chat reading and writing?

Authenticate your Telegram account for automated chat reading and writing by running the tg.py auth command. This initializes a local session directory via tdlib, securely linking your user account for subsequent message access.

Does reading Telegram chat history with tdlib require a local session directory?

Reading Telegram chat history with tdlib requires a local session directory to store authentication credentials and session state. This directory persists your user account login, enabling continuous access to messages without repeated logins.