all repos — telegram-bot-api @ b92bbece9f8dad977b986a5c9ac2b5302ab6ca00

Golang bindings for the Telegram Bot API

fix docs in encodeaudio, remove log
Syfaro syfaro@foxpaw.in
Mon, 10 Aug 2015 15:58:15 -0500
commit

b92bbece9f8dad977b986a5c9ac2b5302ab6ca00

parent

3a401563b5a6428f3d6a4f76d6d2d8e109ff52c1

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M tgutils/audio.gotgutils/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",