Install Vercel CLI
npm i -g vercel
Install Localtunnel
npm i -g localtunnel
Then run local dev server with Localtunnel
npm run tunnel
And open link from terminal (ends with *.loca.lt
) to set WebHook
Now you can make some changes in bot.mjs
- api/telegram.mjs — Endpoint function for WebHooks
- api/setWebhook.mjs — Function for setting WebHook URL