tg

Manage Telegram chats, contacts, and messages via command-line interface.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/dexhunter/Logi-Lobsterism --skill tg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tg
Source: https://github.com/dexhunter/Logi-Lobsterism/tree/main/skills/tg
Command: npx skills add https://github.com/dexhunter/Logi-Lobsterism --skill tg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a command-line interface for interacting with Telegram, enabling users to read, search, and send messages efficiently without needing to open the official Telegram application.

Core Features & Use Cases

  • Message Management: Read recent messages, search chat history, and view unread messages.
  • Communication: Send direct messages, reply to specific messages, and broadcast to groups.
  • Information Retrieval: Get contact details, list group members and admins, and find groups you administer.
  • Use Case: A user wants to quickly check if they have any unread messages from a specific group and then send a reply to a particular message they received earlier.

Quick Start

Use the tg skill to read the last 20 messages from the chat named "Project Updates".

Frequently Asked Questions about tg

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

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

You can read and send Telegram messages from the command line using a CLI interface that integrates with the Telegram API via api_id and api_hash for authentication and session management.

Can I search Telegram chat history and view unread messages without opening the app?

Yes, you can search chat history and view unread Telegram messages without the app by executing specific CLI commands to retrieve and filter unread conversations programmatically.

Does the Telegram CLI support JSON output for programmatic automation?

Yes, the Telegram CLI supports JSON output for programmatic automation, allowing you to pipe message data, contact details, and group member lists directly into other scripts.

What do I need to authenticate a Telegram CLI tool for messaging automation?

To authenticate a Telegram CLI tool for messaging automation, you need to provide your Telegram API credentials, specifically the api_id and api_hash, to establish a valid session.

How do I retrieve group admins and contacts using a Telegram CLI?

You retrieve group admins and contacts using a Telegram CLI by running dedicated information retrieval commands that fetch contact details and list group administrators, outputting results in JSON format.