awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
vysheng avatar

vysheng/tg

0
View on GitHub↗
7,084 stars·1,743 forks·C·GPL-2.0·15 views

Tg

This project is a Telegram command line interface and MTProto client. It functions as a userbot framework, providing a terminal-based environment to interact with Telegram accounts without a graphical user interface.

The system differentiates itself through extensibility, offering Python bindings and a Lua scripting engine to automate account tasks and respond to messages. It also serves as a JSON-based chat exporter, capable of extracting user metadata and conversation histories into structured files.

The client covers core messaging capabilities, including text exchange, group chat management, and the establishment of encrypted secret chats. It supports multimedia exchange, message pattern searching, and the management of multiple account configurations through isolated session persistence.

The implementation provides a terminal command interface featuring tab-completion and command history.

Features

  • Command Line Interfaces - Provides a complete terminal-based interface for interacting with Telegram accounts without a graphical user interface.
  • Terminal Command Interfaces - Implements a terminal-based interactive shell with tab-completion and command history for client control.
  • Automation Scripts - Runs custom scripts to automate responses and forward content based on text patterns.
  • MTProto Implementations - Implements the MTProto protocol to enable low-level communication with Telegram servers.
  • Messaging Event Callbacks - Triggers custom callbacks when messages are received or chat states are updated.
  • Telegram Clients - Functions as a headless MTProto client for running background sessions and programmed tasks.
  • Telegram Bot Frameworks - Provides a framework for building interactive agents and automating responses on the Telegram platform.
  • Userbot Frameworks - Functions as a framework for automating personal user accounts through custom scripts and Python bindings.
  • Text and Binary Message Exchanges - Supports the bidirectional exchange of text messages and the forwarding of content to peers.
  • Terminal Interfaces - Provides a full terminal interface for interacting with Telegram accounts without a GUI.
  • Embedded Lua Scripting - Executes custom Lua scripts to automate messaging and react to real-time events.
  • Language Bindings - Exposes core messaging and chat functions as Python bindings for custom scripting.
  • Python-C++ Bindings - Exposes core C++ messaging logic to Python via bindings for automation and scripting.
  • Event-Driven Callbacks - Triggers custom functions in response to server-pushed updates for messages and user states.
  • Chat History Exporters - Extracts conversation logs and user metadata into structured JSON files.
  • Metadata Exports - Converts user and channel metadata into JSON files for sharing identity and membership statistics.
  • Chat Data Extraction - Exports user metadata, chat histories, and membership statistics into JSON files.
  • JSON Message Serializers - Maps internal messaging objects and peer metadata to structured JSON representations for export.
  • Message Search - Locates specific text patterns within individual conversations or across all messages globally.
  • Account Profile Retrievers - Retrieves and displays detailed user profiles, contact lists, and comprehensive conversation histories.
  • Contact Management - Enables adding users by phone number and managing contact lists through imports and exports.
  • Group Chat Administration - Provides tools for creating group chats, managing participants, and updating group settings.
  • Multimedia Transmission - Transmits and retrieves photos, videos, audio, and documents with local download support.
  • Multi-Account Profiles - Supports isolated configuration directories for different user accounts to enable identity switching.
  • Secret Chat Managers - Establishes and maintains encrypted secret chats through a command-line interface.
  • Persistent Session Managers - Saves authentication tokens and application state to local files to maintain logins between sessions.
  • File-Based Persistence - Saves authentication tokens and session state to local files to maintain logins across restarts.
  • Chat Message Retrieval - Fetches sequences of previous messages from a chat to reconstruct past conversations.

Star history

Star history chart for vysheng/tgStar history chart for vysheng/tg

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does vysheng/tg do?

This project is a Telegram command line interface and MTProto client. It functions as a userbot framework, providing a terminal-based environment to interact with Telegram accounts without a graphical user interface.

What are the main features of vysheng/tg?

The main features of vysheng/tg are: Command Line Interfaces, Terminal Command Interfaces, Automation Scripts, MTProto Implementations, Messaging Event Callbacks, Telegram Clients, Telegram Bot Frameworks, Userbot Frameworks.

Which projects share features with vysheng/tg?

Projects with overlapping indexed features include: pyrogram/pyrogram — Pyrogram is an asynchronous Python framework for interacting with the Telegram MTProto API. It serves as both a bot… danog/madelineproto — MadelineProto is an asynchronous PHP library that provides a programmatic interface for interacting with the Telegram… tdlib/td — This project is a cross-platform messaging SDK and client development library used to build custom Telegram… cluic/wxauto — wxauto is a Python library and bot framework designed for the programmatic control of the WeChat Windows desktop… wechatpy/wechatpy — wechatpy is a Python API SDK designed for interacting with official accounts, mini programs, and corporate… pandolia/qqbot — qqbot is a bot framework designed for building automated conversational agents and plugins using the SmartQQ client.…

Projects sharing features with Tg

These projects share indexed features with Tg. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • pyrogram/pyrogrampyrogram avatar

    pyrogram/pyrogram

    4,614View on GitHub↗

    Pyrogram is an asynchronous Python framework for interacting with the Telegram MTProto API. It serves as both a bot framework and a user client library, providing a concrete implementation of the MTProto protocol for secure communication with Telegram servers. The library distinguishes itself by providing a high-level wrapper layer that abstracts complex protocol methods into Python functions, while still allowing for the execution of raw API functions and low-level peer resolution. It supports multi-client concurrency, enabling the management of several user or bot identities within a single

    Python
    View on GitHub↗4,614
  • danog/madelineprotodanog avatar

    danog/MadelineProto

    3,344View on GitHub↗

    MadelineProto is an asynchronous PHP library that provides a programmatic interface for interacting with the Telegram API using the MTProto protocol, the same protocol used by official Telegram clients. It functions as both a Telegram bot SDK and a userbot automation library, enabling PHP applications to connect to Telegram as either a bot account or a regular user account, sending and receiving messages, media, and other data directly without relying on the Bot API intermediary. The library is built on an event-driven architecture with Amp v3 fiber-based concurrency, allowing for non-blockin

    PHPamphpasyncbot
    View on GitHub↗3,344
  • tdlib/tdtdlib avatar

    tdlib/td

    8,506View on GitHub↗

    This project is a cross-platform messaging SDK and client development library used to build custom Telegram applications. It functions as a comprehensive framework that manages network encryption, local data storage, and API communication, providing a C-compatible JSON interface that allows integration with any programming language. The library distinguishes itself by providing a full database manager for encrypted local caching and synchronized state, alongside a dedicated bot framework for creating interactive bots with business account integration. It enables the implementation of speciali

    C++cross-platformlibrarytelegram
    View on GitHub↗8,506
  • cluic/wxautocluic avatar

    cluic/wxauto

    7,140View on GitHub↗

    wxauto is a Python library and bot framework designed for the programmatic control of the WeChat Windows desktop client. It functions as a wrapper that enables the automation of messaging and social feed functions by simulating user interface interactions. The library distinguishes itself by providing a bridge between network requests and local UI automation, allowing users to expose automation capabilities via a web interface. It utilizes background execution and simulated system-level inputs to trigger application events without moving the physical mouse cursor. The project covers extensiv

    Pythonautomaticpythonrpa
    View on GitHub↗7,140
  • Compare all 30 related projects→