Skip to content

Boilerplate for creating telegram bots using telegraf and cloudflare workers

Notifications You must be signed in to change notification settings

ShiiRochi/telegraf-cloudflare-telegram-bot-boilerplate

Repository files navigation

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
    

Releases

No releases published

Packages

No packages published