7.25.0 • Published 1 year ago

@codebam/cf-workers-telegram-bot v7.25.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

screenshot of cf-workers-telegram-bot

npm i @codebam/cf-workers-telegram-bot

See cwtb-consumer for an example of what a bot might look like. Just import from @codebam/cf-workers-telegram-bot.

See my blog post for a more in-depth guide for how to set up a bot.

  • npm create cloudflare@latest
  • npx wrangler login
  • npx wrangler secret put SECRET_TELEGRAM_API_TOKEN, set it to your telegram bot token that you got from @BotFather
  • npx wrangler deploy
  • Open this url in your browser to set your webhook https://your-worker.username.workers.dev/SECRET_TELEGRAM_API_TOKEN?command=set

To set up GitHub actions to deploy when you push, see https://github.com/cloudflare/wrangler-action


These instructions are for if you want to deploy a copy of the bot along with the library. Such as if you need extra API requests that haven't been implemented yet.

Deploy to Cloudflare Workers

  • Click the deploy button
  • Navigate to your new GitHub repository > Settings > Secrets and add the following secrets:

    - Name: CLOUDFLARE_API_TOKEN  (should be added automatically)
    - Name: CLOUDFLARE_ACCOUNT_ID (should be added automatically)
    
    - Name: SECRET_TELEGRAM_API_TOKEN
    - Value: your-telegram-bot-token
  • Push to master to trigger a deploy

7.25.0

1 year ago

7.23.0

1 year ago

7.19.0

1 year ago

7.20.0

1 year ago

7.22.0

1 year ago

7.24.0

1 year ago

7.18.0

1 year ago

7.17.0

1 year ago

7.16.0

1 year ago

7.15.0

1 year ago

7.14.0

1 year ago

7.8.0

1 year ago

7.13.0

1 year ago

7.11.0

1 year ago

7.9.0

1 year ago

7.12.0

1 year ago

7.10.0

1 year ago

7.7.0

1 year ago

7.6.0

1 year ago

7.4.0

1 year ago

7.3.0

1 year ago

6.5.0

1 year ago

6.6.0

1 year ago

6.4.0

1 year ago

6.1.0

1 year ago

6.2.0

1 year ago

5.17.0

1 year ago

5.16.0

1 year ago

5.15.0

1 year ago

5.14.0

2 years ago

5.4.0

2 years ago

5.2.0

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

5.13.0

2 years ago

5.12.0

2 years ago

5.10.0

2 years ago

4.11.0

2 years ago

5.9.0

2 years ago

5.8.0

2 years ago

5.7.0

2 years ago

4.10.0

2 years ago

4.9.0

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

4.5.0

2 years ago

4.4.0

2 years ago

4.3.0

2 years ago

4.1.0

2 years ago

4.2.0

2 years ago

4.0.0

2 years ago

3.48.0

2 years ago

3.47.0

2 years ago

3.46.0

2 years ago

3.45.0

2 years ago

3.44.0

2 years ago

3.42.0

2 years ago

3.41.0

2 years ago

3.40.0

2 years ago