/batibot-tg

Your AI-powered telegram bot.

Primary LanguageTypeScriptMIT LicenseMIT

Batibot-TG

ChatGpt in your telegram app!

  • Supports image generation
  • Supports conversation history

🛠 Set Up

  1. Install and use the correct version of Node using NVM (Node Version Manager)

    nvm install 16.9.1
    nvm use 16.9.1
  2. Install PNPM (a Javascript package manager)

    • Using Homebrew
      brew install pnpm
    • Using npm
      npm install -g pnpm
  3. Install dependencies

    pnpm install
  4. Install ngrok

  5. Start a tunnel using ngrok

    ngrok http 8000
    
  6. Create a .env file

    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>
    
  7. Start the development server

    pnpm dev