From 96db8d8041c595788588a2e0ecfcd9e1b671411f Mon Sep 17 00:00:00 2001 From: AliMVP Date: Sat, 26 May 2018 23:55:07 +0430 Subject: [PATCH] - Println test media --- configs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs.go b/configs.go index 0e8f419..3e0b40b 100644 --- a/configs.go +++ b/configs.go @@ -2,10 +2,11 @@ package tgbotapi import ( "encoding/json" - "fmt" "io" "net/url" "strconv" + + "github.com/kr/pretty" ) // Telegram constants @@ -1171,7 +1172,6 @@ func (config MediaGroupConfig) values() (url.Values, error) { } bytes, err := json.Marshal(config.Media) if err != nil { - fmt.Println(err) return v, err } v.Add("media", string(bytes)) @@ -1181,7 +1181,7 @@ func (config MediaGroupConfig) values() (url.Values, error) { if config.ReplyToMessageID != 0 { v.Add("reply_to_message_id", strconv.Itoa(config.ReplyToMessageID)) } - + pretty.Println(v) return v, nil }