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 ( import (
"github.com/syfaro/telegram-bot-api" "github.com/syfaro/telegram-bot-api"
"log"
"os" "os"
"os/exec" "os/exec"
"path/filepath" "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. // 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! // This function requires ffmpeg and opusenc to be installed on the system!
func EncodeAudio(audio *tgbotapi.AudioConfig) error { func EncodeAudio(audio *tgbotapi.AudioConfig) error {
@ -65,8 +64,6 @@ func EncodeAudio(audio *tgbotapi.AudioConfig) error {
} }
defer f.Close() defer f.Close()
log.Println(f.Name())
ffmpegArgs := []string{ ffmpegArgs := []string{
"-i", "-i",
audio.FilePath, audio.FilePath,