From 8aff12b073817265712c63b1c64ad104230f43f6 Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Tue, 17 Oct 2017 17:43:01 +0500 Subject: [PATCH] :ambulance: Fixed args indirect --- telegram.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram.go b/telegram.go index efb2867..2cecede 100644 --- a/telegram.go +++ b/telegram.go @@ -15,7 +15,7 @@ const ( func (bot *Bot) request(dst []byte, method string, args *http.Args) (*Response, error) { requestURI := fmt.Sprintf(APIEndpoint, bot.AccessToken, method) - if &args != nil { + if args != nil { requestURI += fmt.Sprint("?", args.String()) } @@ -45,7 +45,7 @@ func (bot *Bot) request(dst []byte, method string, args *http.Args) (*Response, func (bot *Bot) upload(dst []byte, boundary, method string, args *http.Args) (*Response, error) { requestURI := fmt.Sprintf(APIEndpoint, bot.AccessToken, method) - if &args != nil { + if args != nil { requestURI += fmt.Sprint("?", args.String()) }