Skip to content

Instantly share code, notes, and snippets.

@nicktimko
Created May 13, 2016 17:46
Show Gist options
  • Save nicktimko/2b7e21c196d9e74c69fbd7f5b79014cb to your computer and use it in GitHub Desktop.
Save nicktimko/2b7e21c196d9e74c69fbd7f5b79014cb to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Tech-Expert-Wizard
Copy link

How can I get all of the messages, not just 500?

@Anonymous941
Copy link

How can I get all of the messages, not just 500?

I think you'd have to look at the time of the last message, then set before to that.

@Tech-Expert-Wizard
Copy link

How can I get all of the messages, not just 500?

I think you'd have to look at the time of the last message, then set before to that.

@Anonymous941 Do you mean the time of the most recent message?

@Anonymous941
Copy link

@Anonymous941 Do you mean the time of the most recent message?

@Tech-Expert-Wizard I mean set before to the time of the last message (the 500th message) to get the next 500 messages.

@nicktimko
Copy link
Author

How can I get all of the messages, not just 500?

Use get_all_messages, it repeatedly calls get_messages and sets before to before whatever the last 500 were.

@maiconcarraro
Copy link

eu estou nessa lista 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment