Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 720 Bytes

File metadata and controls

27 lines (25 loc) · 720 Bytes

Telegraf Cloudflare Telegram Bot Boilerplate

Workflow

  1. Register on Cloudflare
  2. Register Telegram Bot
  3. Clone the repo
  4. Create .dev.vars using .dev.vars.example
  5. Set compatibility date in wrangler.toml
  6. Run (wrangler installation):
    npm run setup
    
  7. Run to tell the bot to use the correct cloudflare worker
    npm run set-webhook
    
  8. Start development with
    npm run start
    
  9. ...do something awesome...
  10. (OPTIONAL) run npm run set-webhook if you've changed BOT_DOMAIN in .dev.vars
  11. Deploy with:
    npm run deploy