示例#1
0
 /// <summary>
 /// Fetches history of messages and events from a channel.
 /// <see href="https://api.slack.com/methods/channels.history" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='count'>
 /// Number of messages to return, between 1 and 1000.
 /// </param>
 /// <param name='unreads'>
 /// Include `unread_count_display` in the output?
 /// </param>
 /// <param name='inclusive'>
 /// Include messages with latest or oldest timestamp in results.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `channels:history`
 /// </param>
 /// <param name='oldest'>
 /// Start of time range of messages to include in results.
 /// </param>
 /// <param name='channel'>
 /// Channel 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 <HistoryOKResponse> HistoryAsync(this IChannels operations, int?count = default(int?), bool?unreads = default(bool?), bool?inclusive = default(bool?), string token = default(string), string oldest = default(string), string channel = default(string), string latest = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryWithHttpMessagesAsync(count, unreads, inclusive, token, oldest, channel, latest, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }