chatgpt-telegram
chatgpt-telegram copied to clipboard
NodeJS based bot for ChatGPT in Telegram.
ChatGPT Telegram Bot
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
- Clone the repository
- Copy
.env.exampleto.envand fill in the valuesOPENAI_EMAILandOPENAI_PASSWORDis your Google account credentials.TELEGRAM_TOKENis your Telegram bot token. If you don't have one, you can create one using @BotFather.
- Run
npm installto install dependencies - Run
npm startto start the bot - Send
/startto the bot to start chatting
Features
- [X] Support multiple conversations, each chat has its own conversation.
- [X] You can clear your conversation by sending
/newchat. - [X] Queue system, if the bot is busy, it will queue your message and send it when it's free.
- [X] Thinking effect.
- [X] Rate limit to prevent spamming.
- [X] Authentication using Google Account.
- [X] Cloudflare captcha bypass.
- [X] Convert exponential numbers to symbols.
License
MIT License © 2023 Arda Günsüren