A single-file Telegram bot that runs ChatGPT and other AI providers on Cloudflare Workers, serverless with no local setup.
V-know/ChatGPT-Telegram-Bot
A Telegram bot that gives users a streaming ChatGPT-style chat experience, backed by Azure OpenAI or native OpenAI.
- Stars
- 648
- Forks
- 88
- Open issues
- 0
- Last commit
- 2 months ago
What is it?
This project is a Telegram bot that connects users to OpenAI or Azure OpenAI models through a chat interface. Replies are streamed in real time, so text appears as it is generated rather than all at once.
The bot supports DALL·E 3 image generation and includes 15 preset bot personas that users can switch between, plus custom personas. Users can clear a conversation with one tap and restart at any time. The interface is available in English and Chinese.
Access is controlled by user levels, where each level sets its own rate limit, context message count, and maximum tokens per reply. Configuration is done through a config.yaml file, with MySQL 8 as the database, and the project can run locally with Python 3.11+ or in Docker.
Key features
- 01Streams AI replies in real time.
- 02Supports both Azure OpenAI and native OpenAI.
- 03Generates images with the DALL·E 3 model.
- 04Offers 15 preset personas and custom personas.
- 05Applies per-user-level rate limits, context size and token caps.
- 06Provides English and Chinese UI.
Use cases
- Running a personal or team ChatGPT-style assistant inside Telegram.
- Hosting a public Telegram bot with tiered usage limits.
- Using Azure OpenAI deployments through a chat interface.
In collections
Topics
FAQ
- What is ChatGPT-Telegram-Bot?
- A Telegram bot that gives users a streaming ChatGPT-style chat experience, backed by Azure OpenAI or native OpenAI. This project is a Telegram bot that connects users to OpenAI or Azure OpenAI models through a chat interface. Replies are streamed in real time, so text appears as it is generated rather than all at once.
- Is ChatGPT-Telegram-Bot free to use? What license does it have?
- ChatGPT-Telegram-Bot is open source under the MIT license. Check the license terms before using it in commercial products.
- Is ChatGPT-Telegram-Bot still maintained?
- Updated within 6 months. The last commit to ChatGPT-Telegram-Bot was on Sep 7, 2026.
- What can I use ChatGPT-Telegram-Bot for?
- Running a personal or team ChatGPT-style assistant inside Telegram. Hosting a public Telegram bot with tiered usage limits. Using Azure OpenAI deployments through a chat interface.
- Where can I get ChatGPT-Telegram-Bot?
- The source code and installation instructions are on GitHub: https://github.com/V-know/ChatGPT-Telegram-Bot
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Visual Studio extension that brings ChatGPT-style AI into the IDE for code explanation, tests, bug finding, refactoring and chat.
An unofficial, zero-dependency Go client for the OpenAI API, covering Responses, Chat Completions, images, audio and more.
A ChatGPT-based AI fortune-telling app offering tarot, BaZi, name analysis, dream interpretation and Meihua divination with streaming output.
Unofficial Dart and Flutter SDK for the OpenAI API, with typed clients for Responses, Chat, Realtime, Batch and more.
Chat-based SQL client that lets you query and modify databases with natural language, powered by OpenAI models.