SlackWeb.Groups.history

You're seeing just the function history, go back to SlackWeb.Groups module for more information.
Link to this function

history(channel, optional_params \\ %{})

View Source

Fetches history of messages and events from a private channel.

Required Params

  • channel - Private channel to fetch history for.

Optional Params

  • count - Number of messages to return, between 1 and 1000. ex: 100
  • inclusive - Include messages with latest or oldest timestamp in results. ex: 1
  • latest - End of time range of messages to include in results.
  • oldest - Start of time range of messages to include in results.
  • unreads - Include unread_count_display in the output? ex: 1

Errors the API can return:

  • channel_not_found - Value passed for channel was invalid.
  • invalid_ts_latest - Value passed for latest was invalid
  • invalid_ts_oldest - Value passed for oldest was invalid