17 Open-source Free Self-hosted Telegram ChatGPT Bot Scripts
Telegram Bot is a chatbot platform that makes it easy to develop and integrate chatbots with Telegram. Chatbots are automated programs that can chat with users and provide them with information, answer questions, or perform actions on their behalf. Telegram Bot can be used for a wide range of applications, including customer service, news delivery, and marketing.
Telegram offers a developer-friendly API and user-oriented features with several customization.
In the following post, you can find a list of open-source tools to build Telegram Bots:
ChatGPT Telegram Bots are Telegram chatbot developed by using ChatGPT and OpenAI API. These Telegram Bots are designed to provide users with a range of services, including answering questions, providing news updates, and assisting with customer support. It uses natural language processing (NLP) to understand the user's intent and provide appropriate responses.
There are many benefits to using Telegram Bot, including:
- Automation: Telegram Bot allows users to automate tasks and reduce manual labor, which can save time and money.
- 24/7 Availability: Chatbots can be available 24/7, which means that users can get support and assistance at any time of the day or night.
- Scalability: Telegram Bot can handle a large number of requests simultaneously, which makes it suitable for businesses of all sizes.
- Personalization: By using NLP, Telegram Bot can understand the user's intent and provide personalized responses, which can improve the user experience.
This post contains a list of the top open-source Telegram ChatGPT bots that are readily available for use. You can download, customize, install, deploy, and use them for free.
1- ChatGPT Telegram Bot: GPT-4 (Python)
This is a feature-rich ChatGPT Telegram bot, that is written in Python, and offers a full ChatGPT-4 support. It features 15 chat modes: Assistant, 👩🏼💻 Code Assistant, 👩🎨 Artist, 🧠 Psychologist, 🚀 Elon Musk and many others.
It also supports many payment options such as Crypto, and Stripes
Here is a list of its current awesome features:
- Low latency replies (it usually takes about 3-5 seconds)
- No request limits
- Message streaming (watch demo)
- GPT-4 support
- Group Chat support (/help_group_chat to get instructions)
- DALLE 2 (choose 👩🎨 Artist mode to generate images)
- Voice message recognition
- Code highlighting
- 15 special chat modes: 👩🏼🎓 Assistant, 👩🏼💻 Code Assistant, 👩🎨 Artist, 🧠 Psychologist, 🚀 Elon Musk and other. You can easily create your own chat modes by editing
config/chat_modes.yml
- Support of ChatGPT API
- List of allowed Telegram users
- Track $ balance spent on OpenAI API
2- ChatGPT-bot (Go)
A Telegram Bot for ChatGPT written in Go Lang. It can run as a command line app, or as a web-app using Docker. It is available for macOS (Intel, and M1), Linux, Linux ARM, and Windows.
3- TelegramGPT
A minimum ChatGPT Telegram Bot with voice messages and custom system prompt support. Its features include:
- All the powers of ChatGPT.
- Voice messages powered by Azure Cognitive Services.
- Conversation history.
- Restrict bot to specific chats.
- Resume previous conversations.
- Deploy using Docker.
4- telegram-chatgpt-bot (TypeScript)
A self-hostable Telegram bot that lets you speak with ChatGPT through text and voice memos.
This bot has become somewhat of a meandering kitchen sink since I've been having fun implementing stuff for my person use.
- Two-way voice memos. I really liked the idea of talking to ChatGPT with voice and then receiving voice responses, especially for practicing a different language.
- Language/voice selection.
/voice
gives you a inline menu for quickly changing the bot's voice + language. - Language autodetection. If the bot is responding in a language different from the one configured with
/voice
, it uses a default voice in that language instead of forcing, for example, a Spanish voice to butcher German. - Streaming updates. Similar to ChatGPT's online UI, tokens show up in the Telegram message as the bot receives them.
- Custom system prompt. Configure a custom system prompt for the current chat.
- Supports multiple models.
gpt-3.5-turbo
(default)gpt-4
text-davinci-003
- Automatically change voice/language according to user prompt language.
- This is implemented by repeatedly updating the message as tokens are received.
- Dall-E image generation.
5- ChatGPT Telegram Bot (Python)
This is a Telegram chatbot built using the ChatGPT (GPT-3.5 or GPT-4) language model from OpenAI.
Notable features:
- Both one-on-one and group chats.
- Direct questions, mentions, follow-ups.
- Access external links (articles, code, data).
- Shortcuts (custom AI commands).
- Image generation.
- On-the-fly configuration.
6- TELEGRAM CHATGPT BOT (JavaScript)
A lightweight ChatGPT to Telegram bot that lets you interact with a large language model trained by OpenAI.
Features:
- New ChatGPT API support.
- 2 way Voice messages support!
- AI-powered image generation
- Simply Run Docker compose up -d
7- ChatGPT Bot for Telegram (Python)
Telegram bot implemented by OFFICIAL OpenAI ChatGPT API.
Primary features:
The Telegram Bot features the following functions:
- ChatGPT, the AI consultant. You can customize the Bot's character according to preference.
- DALL·E, the Image Generation AI Model. Send a short prompt to the Bot and get your own painting.
- Whisper, the Intelligent Speech Recognizer. The Bot can read your voice messages.
- Azure TTS, the Speech service feature that converts text to lifelike speech. The Bot can reply with voice messages.
- Comprehensive Privacy Protection. The Bot is unable to collect any message in group chat except user prompts.
- ChatGPT role and temperature Customization.
- The Telegram inline mode allows you to query the Bot privately in a chat with a contact or group, even if the Bot is not a member.
- User White-list to control who can use the Bot. You can also set
allow_all_users
totrue
to allow any users to use the Bot. - Set the daily limitation of requirements to DALL·E.
- Grant more resources to Super Users.
- Docker deployment is supported. (This method is maintained by community. Thanks for @EstrellaXD 's contribution)
8- ChatGPT Telegram Bot (JavaScript)
Node.js based bot for ChatGPT in Telegram.
9- telegramGPT (Python)
This repository contains the code for a Telegram chatbot powered by OpenAI's powerful language model. Users can interact with the chatbot directly on Telegram, engaging in natural language conversations.
Features:
- Seamless Integration: The chatbot is built using the OpenAI API, which enables it to generate human-like responses to user queries.
- Natural Language Understanding: The chatbot is trained on a diverse range of internet text sources, providing it with a broad knowledge base to draw from.
- Real-Time Communication: Users can engage in interactive conversations with the chatbot, asking questions, seeking information, or engaging in general chit-chat.
- Personalized Experience: The chatbot leverages machine learning to adapt and learn from user interactions, aiming to provide more relevant and tailored responses over time.
- Open-Source Code: The repository contains the source code, allowing you to explore, modify, and extend the functionality of the chatbot.
10- ChatGPT Telegram Bot (Python)
Yet another feature rich ChatGPT telegram bot for ChatGPT, OpenAI, and DALL-E.
Features:
- Support markdown in answers
- Reset conversation with the
/reset
command - Typing indicator while generating a response
- Access can be restricted by specifying a list of allowed users
- Docker and Proxy support
- Image generation using DALL·E via the
/image
command - Transcribe audio and video messages using Whisper (may require ffmpeg)
- Automatic conversation summary to avoid excessive token usage
- Track token usage per user - by @AlexHTW
- Get personal token usage statistics via the
/stats
command - by @AlexHTW - User budgets and guest budgets - by @AlexHTW
- Stream support
- GPT-4 support
- Localized bot language
- Improved inline queries support for group and private chats
11- ChatGPT Playground Telegram Bot (JavaScript)
The ChatGPT Telegram Bot is a simple chatbot that uses OpenAI's GPT model to respond to messages as if it were a human. You can also specify which OpenAI model to use for generating responses. You can deploy it to your server using Docker.
12- chatbot-telegram
Yet another telegram ChatGPT bot which allows you to setup and run your bot with one simple command. PRs and suggestions are welcome. Leave a 🌟 if you find this project helpful.
- Run your ChatGPT telegram bot with single command.
- Support group chat by mentioning
@
bot whilebot privacy mode
turned off. - Reload conversion with
/reload
command.
13- ChatGPT-Telegram-Bot (TypeScript)
ChatGPT and Telegram bot, based on Node.js.
14- Telegram ChatGPT Concierge Bot (+ Voice!)
This bot provides an innovative and user-friendly way to interact with OpenAI's ChatGPT. Through the use of Telegram and Voice, users can engage with this cutting-edge technology in a seamless and intuitive manner. Whether you're looking to explore the capabilities of AI or simply looking for a new and exciting way to communicate, this bot has got you covered.
15- ChatGPT Telegram Bot (Python)
This is a Telegram bot that lets you chat with the ChatGPT language model using your local browser. The bot uses Playwright to run ChatGPT in Chromium, and can parse code and text, as well as send messages. It also includes a /draw
command that allows you to generate pictures using Stable Diffusion.
16- ChatGPT Telegram Bot (Python)
A Telegram bot with a smooth AI experience.
Features
- Support for both Azure OpenAI and native OpenAI.
- Real-time (streaming) response to AI, with faster and smoother experience.
- 15 preset bot identities that can be quickly switched.
- Support for custom bot identities to meet personalized needs.
- Support to clear the contents of the chat with a single click, and restart the conversation at any time.
- Native Telegram bot button support, making it easy and intuitive to implement required functions.
- User level division, with different levels enjoying different single session token numbers, context numbers, and session frequencies.
17- Telegram ChatGPT Bot (Go)
Telegram bot with OpenAI chat. Supports answering to voice messages. Streaming responses. History summarization.