- Register on Cloudflare
- Register Telegram Bot
- Clone the repo
- Create
.dev.vars
using.dev.vars.example
- Set compatibility date in
wrangler.toml
- Run (wrangler installation):
npm run setup
- Run to tell the bot to use the correct cloudflare worker
npm run set-webhook
- Start development with
npm run start
- ...do something awesome...
- (OPTIONAL) run
npm run set-webhook
if you've changedBOT_DOMAIN
in.dev.vars
- Deploy with:
npm run deploy