Skip to content

himanshusr/chatGPT_telegram_nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT Telegram Bot using Nodejs

To generate TELEGRAM_TOKEN

  • Go to @BotFather chat in telegram
  • /start
  • /newbot
  • Copy the token and save it in .env under TELEGRAM_TOKEN

To generate SERVER_URL

  • use ngrok for local env or some hosting provider like AWS EC2.

To generate OPEN_AI_SESSION_TOKEN

  • Login in OpenAi's ChatGPT
  • Open Developer Tools
  • Go to application
  • Go to cookies
  • Copy the value of __Secure-next-auth.session-token and save it in .env under OPEN_AI_SESSION_TOKEN

alt text

Run

1.  git clone https://github.com/himanshusr/chatGPT_telegram_nodejs.git
2.  cd chatgpt_telegram_nodejs
3.  npm install
4.  cp .env.sample .env
5.  npm run dev

License

MIT

About

ChatGpt telegram bot using Nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published