Coder Social home page Coder Social logo

ahsan3219 / chatgpt-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dawangraoming/chatgpt-telegram-bot

0.0 0.0 0.0 3.36 MB

ChatGPT and Telegram bot, based on Node.js.

License: MIT License

Shell 2.34% TypeScript 94.64% Dockerfile 3.02%

chatgpt-telegram-bot's Introduction

ChatGPT-Telegram-Bot

img

[中文简体]

ChatGPT and Telegram bot, based on Node.js.

GitHub Workflow Status Docker Build Docker Pulls Docker Image Size MIT License

How to use

Send a message directly to the bot and a conversation thread will be created automatically.

If you wish to reset thread, you can use /start command.

demo

How to deploy

Locally

  1. Copy the .env file to .env.prod,

    1. Add Telegram bot token to TELEGRAM_BOT_TOKEN (How to create a Telegram bot
    2. Add ChatGPT token to CHATGPT_TOKEN (How to get ChatGPT token)
  2. Execute the command

# install dependencies
pnpm install

# Start the bot service
pnpm run run

# or run in background by pm2
# but you need to install `pm2` first
# https://pm2.keymetrics.io/
pnpm run run:pm2

Docker

# Pull image
docker pull dawangraoming/chatgpt-telegram-bot:latest

# Run
docker run -d --name chatgpt-telegram-bot -e TELEGRAM_BOT_TOKEN=xxx -e CHATGPT_TOKEN=xxxx chatgpt-telegram-bot

Todo

  1. Finish Unlock Thought Control function, let lover free
  2. More functional keyboard shortcuts
  3. Support setting ChatGPT token in Telegram
  4. Support different users to use different ChatGPT tokens (maybe)
  5. ...

License

MIT © DaWangRaoMing

Alt

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.