fix docs in encodeaudio, remove log

bot-api-6.1
Syfaro 2015-08-10 15:58:15 -05:00
parent 3a401563b5
commit b92bbece9f
1 changed files with 1 additions and 4 deletions

View File

@ -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,