A Telegram bot template that uses telegraf.js + Next.js + Supabase
- Hit the "Use this Template" button
git clone
the repo in your dev envyarn
to install dependenciesngrok http 3000
- expose port 3000 with ngrok- Create
.env
using.env.example
- Add bot token to
.env
yarn start
- Go to
https://<ngrok-url>/api/telegram-hook?setWebhook=true
to set bot webhook url - Message bot /test and see it working
If you get stuck or need to look at some other examples, check these: