public SendAudio setAudio ( File file ) { Objects . requireNonNull ( file , "file cannot be null!" ) ; this . audio = new InputFile ( file , file . getName ( ) ) ; return this ; }
Use this method to set the audio to a new file