Telegram Bot Boilerplate with Vercel's Serverless Functions @VercelServerlessFunctionsBot
This template is a fork of Telegram Bot Boilerplate framework to be used with Vercel's Serverless Functions. Easily deploy to Vercel.
First rename .env-sample
file to .env
and fill in all necessary values.
BOT_TOKEN="<YOUR_BOT_API_TOKEN>"
IS_NOW="<TRUE_IF_PRODUCTION>"
VERCEL_URL="<THE_URL_OF_YOUR_WEBHOOK>"
yarn install
yarn dev
For deployment just change .env
with your production values.
BOT_TOKEN="<YOUR_BOT_API_TOKEN>"
IS_NOW=TRUE
And add VERCEL_URL
variable in Environment Variables UI.
You can also add all your variables in Environment Variables UI (preferred) then push to GitHub.
git push
Pull Requests are welcomed 😉