/// <summary>
 /// Get a list of all messages in a chat
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='chatId'>
 /// The id of the message to get
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <GetMessageDTO> > GetMessagesInChatAsync(this IChats operations, int chatId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetMessagesInChatWithHttpMessagesAsync(chatId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }