From b92bbece9f8dad977b986a5c9ac2b5302ab6ca00 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Mon, 10 Aug 2015 15:58:15 -0500 Subject: [PATCH] fix docs in encodeaudio, remove log --- tgutils/audio.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tgutils/audio.go b/tgutils/audio.go index b9a272f..f7a0034 100644 --- a/tgutils/audio.go +++ b/tgutils/audio.go @@ -3,7 +3,6 @@ package tgutils import ( "github.com/syfaro/telegram-bot-api" - "log" "os" "os/exec" "path/filepath" @@ -55,7 +54,7 @@ func tempFileWithSuffix(dir, suffix string) (f *os.File, err error) { } // EncodeAudio takes a file and attempts to convert it to a .ogg for Telegram. -// It then returns an AudioConfig. +// It then updates the path to the audio file in the AudioConfig. // // This function requires ffmpeg and opusenc to be installed on the system! func EncodeAudio(audio *tgbotapi.AudioConfig) error { @@ -65,8 +64,6 @@ func EncodeAudio(audio *tgbotapi.AudioConfig) error { } defer f.Close() - log.Println(f.Name()) - ffmpegArgs := []string{ "-i", audio.FilePath,