Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.05 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.05 KB

Vercel Telegram bot

Deploy your Telegram bot to Vercel.

GitHub license

It is strongly recommended to use degit to clone this repository. It will delete README.md and degit.json file when clone.

Get started

  1. Clone the template repo & Initialize git repository.
degit [email protected]:Lmmmmmm-bb/vercel-telegram-bot.git my-project
git init
  1. Install Dependencies.
pnpm i
  1. Start dev server & Set your bot webhook to develop server that ngrok provides.
pnpm start
pnpm serve # open dev serve by ngrok

Before Develop

  1. Copy .env.example to .env. Do not upload .env file to your repository.
  2. Setup bot token, webhook domain & path.

Deploy to Vercel

  1. Setup Vercel project.
  2. Setup your project Environment Variables in Vercel. Same as your .env file.
  3. After deploy success, set bot webhook url.