-
I'm trying to get and it always returns 100 messages, no more |
Beta Was this translation helpful? Give feedback.
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);
} |
Beta Was this translation helpful? Give feedback.
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: