ChatGpt in your telegram app!
- Supports image generation
- Supports conversation history
-
Install and use the correct version of Node using NVM (Node Version Manager)
nvm install 16.9.1 nvm use 16.9.1
-
Install PNPM (a Javascript package manager)
- Using Homebrew
brew install pnpm
- Using npm
npm install -g pnpm
- Using Homebrew
-
Install dependencies
pnpm install
-
Install ngrok
-
Start a tunnel using ngrok
ngrok http 8000
-
Create a
.env
file- Generate an OPENAI API key -> https://platform.openai.com/account/api-keys
- Create a bot in Telegram by messaging @BotFather
- Create an account on Supabase and create a new project -> https://supabase.com/dashboard/projects
PORT=8000 TG_BOT_TOKEN=<YOUR_TG_BOT_TOKEN> SERVER_URL=<NGROK_FORWARDING_URL> OPENAI_API_KEY=<OPENAI_API_KEY> SUPABASE_URL=<SUPABASE_PROJECT_URL> SUPABASE_SECRET_KEY=<SUPABASE_SECRET_KEY>
-
Start the development server
pnpm dev