Telegram Bot Vercel Boilerplate based on Node.js and grammY framework.
First copy .env.example
file to .env
and fill in all necessary values.
TELEGRAM_BOT_TOKEN="<YOUR_BOT_API_TOKEN>"
npm ci
npm run dev
You can fork this template and do the necessary changes you need. Then you when are done with your changes simply goto vercel git import.
Import the .env
file in the settings: Settings => Environment Variables
.
The webhook is usually set automatically. If not, open the following URL to trigger manual setup: https://YOUR_DOMAIN.vercel.app/
.
Feel free to create PR!