father-bot /chatgpt_telegram_bot
๐ฌ Telegram bot with ChatGPT & Claude Python-based, using OpenAI's API.
โ
5,554โ 1,902๐ 68โ 190โ 327โค 6
-2
Daily
5,554
stars
1,902
forks
68
watchers
190
prs
327
issues
6
releases
README
๐ค ChatGPT Telegram Bot ChatGPT, re-created as a Telegram bot โ and it works great. GPT-5.5 ยท Anthropic Claude (Opus / Sonnet / Haiku) ยท Vision ยท Voice ยท Image generation Fast replies, no daily limits, message streaming and 15 special chat modes. --- Web chatbots are great โ but they're often laggy, rate-limited, and locked behind a browser tab. This project puts the best models from OpenAI and Anthropic right inside Telegram, with your own API keys and no daily limits. ๐ Try the live bot: @jadvebot ยท ๐ Web: jadve.com โ or deploy your own in two commands (Quick start โ). โจ Features - โก Low latency โ replies usually take 3โ5 seconds. - ๐ No request limits โ you pay your API provider directly, nothing in between. - ๐ Message streaming โ answers stream into Telegram word-by-word. - ๐ง Frontier models โ GPT-5.5 and Anthropic Claude (Opus 4.8 / Sonnet / Haiku) via OpenRouter, plus fast & cheap defaults out of the box. - ๐๏ธ Vision โ send an image and any vision-capable model (GPT-5.5, Claude, โฆ) will read it. - ๐จ Image generation โ create images with OpenAI gpt-image-1 (switch to ๐ฉโ๐จ Artist mode). - ๐ค Voice messages โ record a voice note and Whisper transcribes it for you. - ๐ญ 15 chat modes โ Assistant, Code Assistant, Psychologist, Elon Musk and more. Add your own in config/chat_modes.yml. - ๐ฅ Group chat support โ run /help_group_chat for setup instructions. - ๐ป Code highlighting โ formatted, readable code blocks. - ๐ Access control โ restrict the bot to a list of allowed Telegram users. - ๐ฐ Balance tracking โ see exactly how much you've spent on the API with /balance. ๐ง Supported models Models are config-driven โ add or remove any in config/models.yml with no code changes. | Model | Provider | Vision | Smart | Fast | Cheap | In / Out per 1K tokens | |---|---|:---:|:---:|:---:|:---:|---| | GPT-4o mini (default) | OpenAI | โ | ๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข๐ข | $0.00015 / $0.0006 | | GPT-4o | OpenAI | โ | ๐ข๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข | $0.0025 / $0.01 | | GPT-5.5 | OpenRouter | โ | ๐ข๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข | ๐ข๐ข | $0.005 / $0.03 | | Claude Opus 4.8 | OpenRouter | โ | ๐ข๐ข๐ข๐ข๐ข | ๐ข๐ข | ๐ข๐ข | $0.005 / $0.025 | | Claude Sonnet | OpenRouter | โ | ๐ข๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข | $0.003 / $0.015 | | Claude Haiku | OpenRouter | โ | ๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข๐ข | ๐ข๐ข๐ข๐ข | $0.001 / $0.005 | Plus gpt-image-1 for image generation and Whisper for voice transcription. ๐ก OpenAI models use the native API. Claude and GPT-5.5 are routed through OpenRouter โ just set openrouter_api_key and pick the model in /settings. Any other OpenRouter-routed model works too: declare provider: openrouter in config/models.yml. ๐ญ Chat modes | | | | |---|---|---| | ๐ฉ๐ผโ๐ General Assistant | ๐ฉ๐ผโ๐ป Code Assistant | ๐ฉโ๐จ Artist | | ๐ฌ๐ง English Tutor | ๐ก Startup Idea Generator | ๐ Text Improver | | ๐ง Psychologist | ๐ Elon Musk | ๐ Motivator | | ๐ฐ Money Maker | ๐ SQL Assistant | ๐งณ Travel Guide | | ๐ฅ Rick Sanchez | ๐งฎ Accountant | ๐ฌ Movie Expert | Create your own by editing config/chat_modes.yml. ๐ Quick start 1. Get an OpenAI API
Top issues
#220Feature Addition Suggestions6 comments ยท 2023-04-09#345streaming timeout5 comments ยท 2023-08-08#97Allow users to upload their own openAI API key and pay the bill themself4 comments ยท 2023-03-08#121How do I make the service paid?3 comments ยท 2023-03-11#330The current docker-compose implementation is wrong, here my small tweak2 comments ยท 2023-07-13#482Server is open to allow connections from anyone (0.0.0.0)1 comments ยท 2024-08-17#441Telegram: Timed out Error1 comments ยท 2024-03-28#381Text-to-Speech Feature?1 comments ยท 2023-10-14
Latest release
v1.6 โ OpenRouter, Claude & GPT-5.5 v1.6 2026-06-14Added - OpenRouter provider support: models can declare provider: openrouter in models.yml and are routed through an OpenAI-compatible OpenRouter client. New openrouter_api_key / openrouter_api_base config options. - Anthropic Claude models via OpenRouter: Claude Opus 4.8, Claude Sonnet and Claude Haiku. - OpenAI gpt-5.5 (via OpenRouter). Changed - Chat models are now dispatched by their type in models.yml instead of hardcoded model-name lists, so adding a model is a config-only change. - Token counting falls back to the o200k_base encoding for models unknown to tiktoken (e.g. Clau