- Go to @BotFather chat in telegram
- /start
- /newbot
- Copy the token and save it in .env under TELEGRAM_TOKEN
- go here, create account, create token https://platform.openai.com/account/api-keys
- use ngrok for local env or some hosting provider like AWS EC2.
brew install ngrok
Create account on https://ngrok.com/, add token
ngrok config add-authtoken your token from dashboard
ngrok http http server port from .env
random-generated-letters.eu.ngrok.io
SERVER_URL='blablabla.eu.ngrok.io'
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
MIT