Giter Club home page Giter Club logo

chatgpt_telegram_bot_action's Introduction

ChatGPT Telegram Bot: Fast. No daily limits. Special chat modes中文版本

You don't need a database or Docker environment to create a ChatGPT Telegram Bot. All you need is a public Github repo. Of course, this also means that no chat records will be saved; all chat records will be temporarily stored on Github and will be destroyed when the workflow is rerun. If you are concerned about this, you can choose not to use it.

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.

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

News

  • 2 Mar 2023: Added support of ChatGPT API. It's enabled by default and can be disabled with use_chatgpt_api option in config. Don't forget to rebuild you docker image (--build).

Features

  • Low latency replies (it usually takes about 3-5 seconds)
  • No request limits
  • Code highlighting
  • Special chat modes: 👩🏼‍🎓 Assistant, 👩🏼‍💻 Code Assistant, 🎬 Movie Expert. More soon
  • Support of ChatGPT API
  • 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. Fork this repo and add some secrets (follow this turtoial https://docs.github.com/en/actions/security-guides/encrypted-secrets)

The two secrets in the picture must be filled in, and the remaining fields are optional.

other secrets:

secret name optional value default value
use_chatgpt_api True of False True
allowed_telegram_usernames ['username_a','username_b'] [ ](if empty, the bot is available to anyone)
new_dialog_timeout number(new dialog starts after timeout (in seconds)) 600
  1. Go to repo Actions and trigger this action manually

FYI: By default, GitHub Actions kills workflows after 6 hours if they have not finished by then..Due to the limitations of Github Actions, I have set up a job to be restarted every five hours. Therefore, in theory, you only need to manually click once to start the job, and then the job will be able to work 24 hours.

References

  1. Build ChatGPT from GPT-3

chatgpt_telegram_bot_action's People

Contributors

karfly avatar zhangolve avatar lixxdee avatar n0ne1eft avatar teenstitans 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.