all repos — telegram-bot-api @ fc8cb6e0398c8801c799ebe0a09d26e87ae6f6ce

Golang bindings for the Telegram Bot API

Client is now a pointer
Raul Santos raulsntos@gmail.com
Tue, 28 Jul 2015 11:18:49 +0200
commit

fc8cb6e0398c8801c799ebe0a09d26e87ae6f6ce

parent

8249dd6a932861ac1213dc4bcf4b6fc96104aa53

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

jump to
M bot.gobot.go

@@ -5,11 +5,11 @@ import "net/http"

// BotAPI has methods for interacting with all of Telegram's Bot API endpoints. type BotAPI struct { - Token string `json:"token"` - Debug bool `json:"debug"` - Self User `json:"-"` - Updates chan Update `json:"-"` - Client http.Client `json:"-"` + Token string `json:"token"` + Debug bool `json:"debug"` + Self User `json:"-"` + Updates chan Update `json:"-"` + Client *http.Client `json:"-"` } // NewBotAPI creates a new BotAPI instance.

@@ -21,7 +21,7 @@ }

bot := &BotAPI{ Token: token, - Client: *client, + Client: client, } self, err := bot.GetMe()