Git Product home page Git Product logo

chatgpt_telegram_bot's Introduction

ChatGPT Telegram Bot: GPT-4. Fast. No daily limits. Special chat modes


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 as Telegram Bot. And it works great.

You can deploy your own bot, or use mine: @chatgpt_karfly_bot

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


๐Ÿค‘ Payments

My bot supports many payments providers:

If you want to add payments to your bot and create profitable business โ€“ write me on Telegram (@karfly).

News

  • 21 Apr 2023:
    • DALLE 2 support
    • Group Chat support (/help_group_chat to get instructions)
    • 10 new hot chat modes and updated chat mode menu with pagination: ๐Ÿ‡ฌ๐Ÿ‡ง English Tutor, ๐Ÿง  Psychologist, ๐Ÿš€ Elon Musk, ๐Ÿ“Š SQL Assistant and other.
  • 24 Mar 2023: GPT-4 support. Run /settings command to choose model
  • 15 Mar 2023: Added message streaming. Now you don't have to wait until the whole message is ready, it's streamed to Telegram part-by-part (watch demo)
  • 9 Mar 2023: Now you can easily create your own Chat Modes by editing config/chat_modes.yml
  • 8 Mar 2023: Added voice message recognition with OpenAI Whisper API. Record a voice message and ChatGPT will answer you!
  • 2 Mar 2023: Added support of ChatGPT API.
  • 1 Aug 2023: Added OpenAI API Base to config (useful while using OpenAI-compatible API like LocalAI)

Bot commands

  • /retry โ€“ Regenerate last bot answer
  • /new โ€“ Start new dialog
  • /mode โ€“ Select chat mode
  • /balance โ€“ Show balance
  • /settings โ€“ Show settings
  • /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
  4. ๐Ÿ”ฅ And now run:

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

โค๏ธ Top donations

You can be in this list:

  1. unexpectedsunday. Donation: 150$

  2. Sem. Donation: 100$

  3. Ryo. Donation: 80$

  4. Ilias Ism. Donation: 69$

    Message: I wanted to thank you for your amazing code! It helped me start my own Telegram ChatGPT bot and add a bunch of cool features. I really appreciate your hard work on this project. For anyone interested in trying my bot, feel free to check it out here: magicbuddy.chat ๐Ÿค– Thanks again! ๐Ÿ˜Š

  5. Sebastian. Donation: 55$

  6. Alexander Zimin. Donation: 50$

  7. Kbaji20. Donation: 30$

  8. Hans Blinken. Donation: 10$

References

  1. Build ChatGPT from GPT-3

chatgpt_telegram_bot's People

Contributors

karfly avatar lixxdee avatar clemsau avatar gordinmitya avatar easonc13 avatar fl0p avatar gargmegham avatar n0ne1eft avatar light2dark avatar tannhatcms avatar grynn avatar akynazh avatar maccagnit avatar wedarobi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.