fix docs in encodeaudio, remove log
Syfaro syfaro@foxpaw.in
Mon, 10 Aug 2015 15:58:15 -0500
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
tgutils/audio.go
→
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 @@ return
} // 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 {@@ -64,8 +63,6 @@ if err != nil {
return err } defer f.Close() - - log.Println(f.Name()) ffmpegArgs := []string{ "-i",