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