/// <summary> /// Fetches a conversation's history of messages and events. /// <see href="https://api.slack.com/methods/conversations.history" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='inclusive'> /// Include messages with latest or oldest timestamp in results only when /// either timestamp is specified. /// </param> /// <param name='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](/docs/pagination) for more detail. /// </param> /// <param name='token'> /// Authentication token. Requires scope: `conversations:history` /// </param> /// <param name='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. /// </param> /// <param name='oldest'> /// Start of time range of messages to include in results. /// </param> /// <param name='channel'> /// Conversation ID to fetch history for. /// </param> /// <param name='latest'> /// End of time range of messages to include in results. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HistoryOKResponseModel> HistoryAsync(this IConversations operations, bool?inclusive = default(bool?), string cursor = default(string), string token = default(string), int?limit = default(int?), string oldest = default(string), string channel = default(string), string latest = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.HistoryWithHttpMessagesAsync(inclusive, cursor, token, limit, oldest, channel, latest, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }