SlackWeb.Conversations.history

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

history(channel, optional_params \\ %{})

View Source

Returns a portion of message events from the specified conversation.

Bot user tokens may use this method for direct message and multi-party direct message conversations but lack sufficient permissions to use this method on public and private channels.

Required Params

  • channel - Conversation ID to fetch history for. ex: G1234567890

Optional Params

  • cursor - Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail. ex: dXNlcjpVMDYxTkZUVDI=
  • inclusive - Include messages with latest or oldest timestamp in results only when either timestamp is specified. ex: true
  • latest - End of time range of messages to include in results. ex: 1234567890.123456
  • limit - The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. ex: 20
  • oldest - Start of time range of messages to include in results. ex: 1234567890.123456

Errors the API can return:

  • channel_not_found - Value passed for channel was invalid