- Println test media

pull/216/head
AliMVP 7 years ago
parent 82e494101a
commit 96db8d8041
  1. 6
      configs.go

@ -2,10 +2,11 @@ package tgbotapi
import ( import (
"encoding/json" "encoding/json"
"fmt"
"io" "io"
"net/url" "net/url"
"strconv" "strconv"
"github.com/kr/pretty"
) )
// Telegram constants // Telegram constants
@ -1171,7 +1172,6 @@ func (config MediaGroupConfig) values() (url.Values, error) {
} }
bytes, err := json.Marshal(config.Media) bytes, err := json.Marshal(config.Media)
if err != nil { if err != nil {
fmt.Println(err)
return v, err return v, err
} }
v.Add("media", string(bytes)) v.Add("media", string(bytes))
@ -1181,7 +1181,7 @@ func (config MediaGroupConfig) values() (url.Values, error) {
if config.ReplyToMessageID != 0 { if config.ReplyToMessageID != 0 {
v.Add("reply_to_message_id", strconv.Itoa(config.ReplyToMessageID)) v.Add("reply_to_message_id", strconv.Itoa(config.ReplyToMessageID))
} }
pretty.Println(v)
return v, nil return v, nil
} }