diff --git a/README.md b/README.md index ec32fc31..0cd77d0c 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ for (const betaMessageBatch of page.data) { // Convenience methods are provided for manually paginating: while (page.hasNextPage()) { - page = page.getNextPage(); + page = await page.getNextPage(); // ... } ```