ChatGPT-Telegram-Bot  by yym68686

Telegram bot for AI chat, powered by various LLMs

Created 3 years ago
1,189 stars

Top 32.7% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a versatile Telegram bot that integrates with multiple large language models (LLMs) and AI services, enabling users to interact with advanced AI capabilities directly within Telegram. It targets users seeking a unified interface for various AI models, including text generation, image creation, and web search, offering a feature-rich and customizable experience.

How It Works

The bot leverages a Python backend to asynchronously process messages and manage conversations across different LLMs. It supports multimodal inputs (voice, image, documents) and features a model grouping system for intuitive selection. A key design choice is its self-developed API request SDK, which avoids direct reliance on official SDKs, potentially offering greater flexibility and control over API interactions.

Quick Start & Requirements

  • Install/Run: Deployment options include Docker, Zeabur, Replit, and fly.io. For local execution from source: git clone --recurse-submodules ..., pip install -r requirements.txt, python bot.py.
  • Prerequisites: Python >= 3.10. API keys for desired LLM services (OpenAI, Groq, Gemini, Claude, etc.) are required. Google API keys are needed for Google Search.
  • Links: Project Repository, Official Documentation

Highlighted Details

  • Supports a wide array of LLMs: GPT-3.5/4/4o/o1, DALL·E 3, Claude 2.1/3/3.5, Gemini 1.5 Pro/Flash, Vertex AI, Groq, and more.
  • Features multimodal capabilities for voice, image, and document (PDF, TXT, MD, Python) processing.
  • Includes a plugin system for web search (DuckDuckGo, Google), URL summarization, ArXiv paper summarization, and code interpretation.
  • Offers group chat topic modes, dialogue isolation, and customizable user preferences.

Maintenance & Community

The project has received sponsorship from several individuals and entities, indicating community interest and support. Development activity and updates are ongoing.

Licensing & Compatibility

  • License: GPL-3.0 License.
  • Compatibility: GPLv3 is a strong copyleft license. Derivative works must also be licensed under GPLv3. Commercial use or linking with closed-source software may require careful consideration of license obligations.

Limitations & Caveats

The project's reliance on external API keys means costs are associated with usage. Some features, like document Q&A, require enabling conversation history (PASS_HISTORY), which incurs additional costs and is not enabled by default. The README notes that some free deployment platforms like Koyeb can be unstable.

Health Check
Last Commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
1
Star History
23 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Yaowei Zheng Yaowei Zheng(Author of LLaMA-Factory).

AstrBot by AstrBotDevs

1.1%
15k
LLM chatbot/framework for multiple platforms
Created 3 years ago
Updated 15 hours ago
Feedback? Help us improve.