This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Repository navigation
|
I'm trying to get and it always returns 100 messages, no more |
Answered by
rojvv
Jul 22, 2022
Replies: 1 comment 5 replies
|
You can do that by iterating through them: for await (const message of client.iterMessages(yourChat)) {
// use message
}This is how you can use the above method to put all of them into an array: const messages = new Array<Api.Message>();
for await (const message of client.iterMessages(yourChat)) {
messages.push(message);
} |
5 replies
Answer selected by
ainizoda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do that by iterating through them:
This is how you can use the above method to put all of them into an array: