2.0.1 • Published 19 days ago

@grammyjs/auto-retry v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
19 days ago

Automatically Retry grammY API Requests

Check out the official documentation for this grammY plugin. You might also want to read about broadcasting messages.

Quickstart

An API transformer function lets you modify outgoing HTTP requests on the fly. This grammY plugin can automatically detect if an API requests fails with a retry_after value. It will then intercept the error, wait the specified period of time, and then retry the request.

import { autoRetry } from "@grammyjs/auto-retry";

// Install the plugin
bot.api.config.use(autoRetry());

You can also pass an options object to configure this plugin. Check out the docs to read on.

2.0.1

19 days ago

2.0.0

19 days ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago