chatgpt-telegram-bot logo

chatgpt-telegram-bot

Free

2.7k

FreeFree tier
Inputs: text, image, audio, videoOutputs: text, image
Type
Open Source

About chatgpt-telegram-bot

ChatGPT Telegram Bot is an open-source Python project that integrates with OpenAI's official APIs, including ChatGPT, DALL·E, and Whisper, to provide a versatile conversational agent within the Telegram messaging platform. Designed for ease of deployment, it requires minimal configuration and supports features such as markdown in answers, conversation reset, typing indicators, and access restriction via an allowed user list. The bot also offers Docker and proxy support, image generation through DALL·E, audio and video transcription via Whisper, automatic conversation summarization to manage token usage, and per-user token tracking with statistics. It supports GPT-4 for users with API access, multiple languages, inline queries for group and private chats, and extensible plugins for third-party services like weather, Spotify, and web search. As an open-source tool hosted on GitHub, it is freely available for self-hosting, though users must provide their own OpenAI API keys and Telegram bot token, and any associated costs from OpenAI's API usage apply.

Key Features

Integrates with OpenAI's ChatGPT, DALL·E, and Whisper APIs
Supports markdown in answers and conversation reset via /reset command
Typing indicator while generating a response
Access can be restricted to a list of allowed users
Docker and proxy support for deployment
Image generation using DALL·E via /image command
Transcribes audio and video messages using Whisper
Automatic conversation summary to avoid excessive token usage
Tracks token usage per user and provides personal statistics via /stats command
Supports GPT-4 and multiple languages

Pros & Cons

Pros
  • Open-source and free to self-host with no subscription fees for the bot itself
  • Supports multiple OpenAI models including GPT-4 and DALL·E
  • Includes token usage tracking and budget controls for users
  • Docker support simplifies deployment and scaling
  • Plugin system allows integration with third-party services
Cons
  • Requires self-hosting and technical knowledge to set up
  • Depends on OpenAI API keys; usage incurs OpenAI's API costs
  • Free tier of the bot itself is not applicable; users pay for API usage directly
  • Feature set and reliability depend on the user's own server and maintenance
  • Some features (e.g., Whisper transcription) may require additional dependencies like ffmpeg

Best For

Deploying a personal or community ChatGPT assistant on TelegramGenerating images from text prompts within Telegram conversationsTranscribing audio and video messages into textManaging group chats with inline queries and access controlsIntegrating external services like weather updates or web searches via plugins

FAQ

Is this bot free to use?
The bot software itself is open-source and free. However, users must provide their own OpenAI API key, and usage of the OpenAI APIs incurs costs based on OpenAI's pricing. There is no built-in free tier for API usage.
Do I need to host this bot myself?
Yes, the bot is designed for self-hosting. You need to deploy it on your own server or cloud instance, and configure it with your Telegram bot token and OpenAI API key.
What OpenAI models does it support?
Based on the repository, it supports OpenAI's ChatGPT models (including GPT-4 if you have API access), DALL·E for image generation, and Whisper for audio transcription.
Can I restrict who can use the bot?
Yes, the bot supports access restriction by specifying a list of allowed users. This can be configured in the bot's settings.
Does the bot support group chats?
Yes, it supports inline queries for group and private chats, allowing it to be used in group conversations.
How do I get started?
You can clone the repository from GitHub, follow the setup instructions in the README, configure your environment variables (e.g., Telegram bot token, OpenAI API key), and deploy using Docker or directly with Python.