Skip to content

Lmmmmmm-bb/vercel-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.