Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

ArdaGnsrn/chatgpt-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Telegram Bot

ChatGPT Telegram Bot Preview

Note: You need Redis Server to run the bot.

Note: This bot uses a browser-based ChatGPT API, please make sure you have Node.js >= 18 and a Chromium-based browser installed.

Note: The bot uses Google Account because of Recaptcha. The app asks you to pass a captcha verification if you don't log in with google.

Usage

  1. Clone the repository
  2. Copy .env.example to .env and fill in the values
    1. OPENAI_EMAIL and OPENAI_PASSWORD is your Google account credentials.
    2. TELEGRAM_TOKEN is your Telegram bot token. If you don't have one, you can create one using @BotFather.
  3. Run npm install to install dependencies
  4. Run npm start to start the bot
  5. Send /start to the bot to start chatting

Features

  • Support multiple conversations, each chat has its own conversation.
  • You can clear your conversation by sending /newchat.
  • Queue system, if the bot is busy, it will queue your message and send it when it's free.
  • Thinking effect.
  • Rate limit to prevent spamming.
  • Authentication using Google Account.
  • Cloudflare captcha bypass.
  • Convert exponential numbers to symbols.

License

MIT License © 2023 Arda Günsüren