A Telegram bot template that uses telegraf.js + Next.js + Supabase
git clone
the repo in your dev envyarn
to install dependenciesngrok http 3000
- expose port 3000 with ngrok.env
using .env.example
.env
yarn start
https://<ngrok-url>/api/telegram-hook?setWebhook=true
to set bot webhook urlIf you get stuck or need to look at some other examples, check these: