/// <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>
 public static IList <GetMessageDTO> GetMessagesInChat(this IChats operations, int chatId)
 {
     return(operations.GetMessagesInChatAsync(chatId).GetAwaiter().GetResult());
 }