17 Open-source Free Self-hosted Telegram ChatGPT Bot Scripts

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.

10 Reasons Why Telegram Bot is a Powerful Marketing and Customer Engagement Tool
Telegram is a messaging app that has over 500 million active users worldwide. It offers a secure and fast way to communicate with friends, family, and colleagues. Telegram has become a popular platform for businesses to engage with their customers, and with the integration of chatbots, businesses ca…

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:

12 Open Source Libraries to Build Telegram Bots
Telegram bots are special accounts that automatically handle messages. Users can interact with bots by sending commands in private or group chats. They are useful tools for many people around the world, offering an interface to communicate with customers and manage Telegram channels. Developers can…

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
GitHub - karfly/chatgpt_telegram_bot
Contribute to karfly/chatgpt_telegram_bot development by creating an account on GitHub.

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.

GitHub - m1guelpf/chatgpt-telegram: Run your own GPTChat Telegram bot, with a single command!
Run your own GPTChat Telegram bot, with a single command! - GitHub - m1guelpf/chatgpt-telegram: Run your own GPTChat Telegram bot, with a single command!

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.
GitHub - zhuorantan/TelegramGPT: A minimum ChatGPT Telegram Bot with voice messages and custom system prompt support
A minimum ChatGPT Telegram Bot with voice messages and custom system prompt support - GitHub - zhuorantan/TelegramGPT: A minimum ChatGPT Telegram Bot with voice messages and custom system prompt su…

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.
GitHub - danneu/telegram-chatgpt-bot: a Telegram ChatGPT bot that supports text prompts and two-way voice memos
a Telegram ChatGPT bot that supports text prompts and two-way voice memos - GitHub - danneu/telegram-chatgpt-bot: a Telegram ChatGPT bot that supports text prompts and two-way voice memos

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.
GitHub - nalgeon/pokitoki: Humble ChatGPT Telegram Bot
Humble ChatGPT Telegram Bot. Contribute to nalgeon/pokitoki development by creating an account on GitHub.

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
GitHub - sabber-slt/telegram-chatgpt-bot: NodeJS-based bot for ChatGPT that runs on Telegram now features advanced capabilities such as voice chat and image generation.
NodeJS-based bot for ChatGPT that runs on Telegram now features advanced capabilities such as voice chat and image generation. - GitHub - sabber-slt/telegram-chatgpt-bot: NodeJS-based bot for ChatG…


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 to true 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)
GitHub - flynnoct/chatgpt-telegram-bot: Telegram bot implemented by OFFICIAL OpenAI ChatGPT API (gpt-3.5-turbo, released on 2023-03-01)
Telegram bot implemented by OFFICIAL OpenAI ChatGPT API (gpt-3.5-turbo, released on 2023-03-01) - GitHub - flynnoct/chatgpt-telegram-bot: Telegram bot implemented by OFFICIAL OpenAI ChatGPT API (gp…


8- ChatGPT Telegram Bot (JavaScript)

Node.js based bot for ChatGPT in Telegram.

GitHub - ArdaGnsrn/chatgpt-telegram: NodeJS based bot for ChatGPT in Telegram.
NodeJS based bot for ChatGPT in Telegram. Contribute to ArdaGnsrn/chatgpt-telegram development by creating an account on GitHub.

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.
GitHub - kit4py/telegramGPT: ChatGPT in Telegram as a bot
ChatGPT in Telegram as a bot. Contribute to kit4py/telegramGPT development by creating an account on GitHub.

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
GitHub - n3d1117/chatgpt-telegram-bot: 🤖 A Telegram bot that integrates with OpenAI’s official ChatGPT APIs to provide answers, written in Python
🤖 A Telegram bot that integrates with OpenAI's official ChatGPT APIs to provide answers, written in Python - GitHub - n3d1117/chatgpt-telegram-bot: 🤖 A Telegram bot that integrates with OpenAI&…

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.

GitHub - arxlan99/chat-gpt-telegram-bot: Chat Gpt Telegram Bot
Chat Gpt Telegram Bot. Contribute to arxlan99/chat-gpt-telegram-bot development by creating an account on GitHub.

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 while bot privacy mode turned off.
  • Reload conversion with /reload command.
GitHub - Ciyou/chatbot-telegram: Yet another telegram ChatGPT bot which allows you to setup and run your bot with one simple command.
Yet another telegram ChatGPT bot which allows you to setup and run your bot with one simple command. - GitHub - Ciyou/chatbot-telegram: Yet another telegram ChatGPT bot which allows you to setup an…

13- ChatGPT-Telegram-Bot (TypeScript)

ChatGPT and Telegram bot, based on Node.js.
GitHub - dawangraoming/chatgpt-telegram-bot: ChatGPT and Telegram bot, based on Node.js.
ChatGPT and Telegram bot, based on Node.js. Contribute to dawangraoming/chatgpt-telegram-bot development by creating an account on GitHub.

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.

GitHub - RafalWilinski/telegram-chatgpt-concierge-bot: Interact with OpenAI’s ChatGPT via Telegram and Voice.
Interact with OpenAI’s ChatGPT via Telegram and Voice. - GitHub - RafalWilinski/telegram-chatgpt-concierge-bot: Interact with OpenAI’s ChatGPT via Telegram and Voice.

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.

GitHub - altryne/chatGPT-telegram-bot: This is a very early attempt at having chatGPT work within a telegram bot
This is a very early attempt at having chatGPT work within a telegram bot - GitHub - altryne/chatGPT-telegram-bot: This is a very early attempt at having chatGPT work within a telegram bot

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.
GitHub - V-know/ChatGPT-Telegram-Bot: A Telegram bot with a smooth AI experience.
A Telegram bot with a smooth AI experience. Contribute to V-know/ChatGPT-Telegram-Bot development by creating an account on GitHub.

17- Telegram ChatGPT Bot (Go)

Telegram bot with OpenAI chat. Supports answering to voice messages. Streaming responses. History summarization.

GitHub - tectiv3/chatgpt-bot: Telegram bot with OpenAI chat. Supports answering to voice messages. Streaming responses. History summarization. Function calls
Telegram bot with OpenAI chat. Supports answering to voice messages. Streaming responses. History summarization. Function calls - GitHub - tectiv3/chatgpt-bot: Telegram bot with OpenAI chat. Suppor…

12 Reasons Why Should You Consider Telegram Bot to Boost Your Business
Telegram Bot offers a stable API, custom commands, multimedia support, and easy integration with other solutions, which can help businesses improve messaging and revenue.
10 Open-source Free-to-use Telegram Bots For Developers
As of January 2021, Telegram has more than 500 million active users worldwide. It is an instant messaging app that is widely used due to its various features. These include the ability to create bots, which are programs that can carry out various tasks within the Telegram app. What are







Open-source Apps

9,500+

Medical Apps

500+

Lists

450+

Dev. Resources

900+