code: public SendDocument setDocument(File file) {
          Objects.requireNonNull(file, "documentName cannot be null!");
          this.document = new InputFile(file, file.getName());
          return this;
      }
docs: Use this method to set the document to a new file
  
  @param file New document file