2023-01-19 15:24:50 -06:00
2023-01-19 14:56:02 -06:00
2023-01-19 14:56:02 -06:00
2023-01-19 15:24:50 -06:00
2023-01-19 14:56:02 -06:00
2023-01-19 14:56:02 -06:00
2023-01-16 14:20:47 -06:00
2023-01-19 14:56:02 -06:00
2023-01-19 14:56:02 -06:00

ChatGPT Telegram Bot (fast and no limits)

We all love chat.openai.com, but...

It's TERRIBLY laggy, has daily limits, and is only accessible through an archaic web interface.

This repo is ChatGPT re-created with GPT-3.5 LLM as Telegram Bot. And it works great.

Features

  • Low latency replies (it usually takes about 3-5 seconds)
  • No request limits
  • Code highlighting
  • Different chat modes: 👩🏼‍🎓 Assistant, 👩🏼‍💻 Code Assistant, 🎬 Movie Expert. More soon
  • List of allowed Telegram users
  • Track $ balance spent on OpenAI API

Bot commands

  • /retry Regenerate last bot answer
  • /new Start new dialog
  • /mode Select chat mode
  • /balance Show balance
  • /help Show help

Setup

  1. Get your OpenAI API key

  2. Get your Telegram bot token from @BotFather

  3. Edit config/config.example.yml to set your tokens and run 2 commands below (if you're advanced user, you can also edit config/config.example.env):

mv config/config.example.yml config/config.yml
mv config/config.example.env config/config.env

🔥 And now run:

docker compose --env-file config/config.env up --build

References

  1. Build ChatGPT from GPT-3
S
Description
💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
Readme MIT 12 MiB
Languages
Python 99.1%
Dockerfile 0.9%