Telegram bot for interacting with ChatGPT via Node.js
Top 84.8% on sourcepulse
This Node.js-based Telegram bot integrates with ChatGPT, offering flexibility through official, unofficial, and browser-based API options. It's designed for Telegram users seeking to leverage AI chatbots within their messaging platform, providing features like private and group chat support, message queuing, and customizable bot behavior.
How It Works
The bot supports three distinct API integration methods: the official OpenAI API (paid, robust), an unofficial proxy API (free, potentially rate-limited, relies on third-party servers), and a browser-based API (free, uses Puppeteer, considered flaky and heavyweight). This multi-API approach allows users to choose based on cost, reliability, and technical requirements, with a strong recommendation towards the official API due to potential account bans with unofficial methods.
Quick Start & Requirements
pnpm install && pnpm build && pnpm start
(Node.js) or docker run -d -v ./config:/app/config raineggplant/chatgpt-telegram-bot:latest
(Docker).config/local.json
. Docker image for browser-based API is tagged latest-browser
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README strongly advises against the browser-based API due to flakiness and potential errors. There are also rumors of OpenAI account bans for using unofficial or browser-based APIs, recommending users proceed at their own risk. Running the browser-based API on headless servers requires additional setup like Xvfb and potential CAPTCHA solving services.
1 year ago
1 day