Add an AI chatbot to a Telegram group chat so members can ask questions without leaving the app.
Build a personal AI assistant accessible from any phone with Telegram installed.
Create custom chat personas by editing the chat modes configuration file.
Track OpenAI API spending and restrict bot access to approved Telegram users only.
Requires an OpenAI API key and a Telegram bot token from BotFather before launching with Docker.
This project is a Python-based Telegram bot that lets users chat with OpenAI's language models directly inside the Telegram messaging app. Rather than opening a web browser to use ChatGPT, users can message the bot just like they would message a person on Telegram, and the bot responds using the OpenAI API. The bot supports GPT-4, GPT-4 Turbo, and GPT-4 Vision (for analyzing images), and delivers responses with message streaming, meaning the reply appears word by word as it's generated rather than all at once after a delay. Voice messages are also supported: record a voice note, and the bot transcribes it using OpenAI's Whisper service before generating a reply. One of the more distinctive features is a set of 15 pre-built chat modes that change how the AI responds. These include a general assistant, a coding helper, an image generator using DALL-E 2, a language tutor, and several personality personas. Users can switch between modes with a command, and additional modes can be created by editing a configuration file. The bot supports group chats, tracks spending against the OpenAI API balance, can restrict access to a list of approved Telegram users, and highlights code blocks in responses. Setup requires an OpenAI API key and a Telegram bot token from Telegram's BotFather service. Once those are in place, the bot is launched with Docker using two commands. The project is donation-supported by its community of users.
← father-bot on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.