chatGPT-telegram-bot  by altryne

Telegram bot for interacting with ChatGPT

created 2 years ago
1,669 stars

Top 25.9% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a Telegram bot enabling users to interact with ChatGPT, generate images via Stable Diffusion, and browse the web using Google Search. It targets Telegram users seeking convenient access to AI models on the go.

How It Works

The bot leverages Playwright to automate a local Chromium browser instance, interacting with the ChatGPT web interface. This approach allows it to parse text and code outputs from ChatGPT. For image generation, it integrates with Stable Diffusion APIs, and for web browsing, it uses the SERP API to fetch Google search results.

Quick Start & Requirements

  • Install via conda env create -f environment.yml and activate with conda activate chat.
  • Requires Python, Miniconda, Playwright (playwright install, playwright install-deps).
  • Needs Telegram bot token and user ID, OpenAI email/password, and optional API keys for Stable Diffusion and SERP API.
  • Docker image available: ghcr.io/altryne/chatgpt-telegram-bot.
  • Official setup instructions: https://github.com/altryne/chatGPT-telegram-bot

Highlighted Details

  • ChatGPT integration via browser automation.
  • Image generation with Stable Diffusion.
  • Web browsing capability using SERP API.
  • Docker support for headless server deployment.

Maintenance & Community

  • Creator: @Altryne on Twitter.
  • Based on Daniel Gross's whatsapp-gpt package.

Licensing & Compatibility

  • License not explicitly stated in the README.
  • Compatibility for commercial use or closed-source linking is undetermined.

Limitations & Caveats

The project is described as an "early attempt" and requires significant setup, including obtaining API keys and managing browser automation dependencies. OpenAI credentials are required for headless mode, which may raise security concerns.

Health Check
Last commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
6 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.