allow passing a []byte or io.Reader to upload functions, closes #20

This commit is contained in:
Syfaro 2015-09-07 11:20:43 -05:00
parent 766f7494e9
commit e48e6416e7
3 changed files with 144 additions and 49 deletions

4
bot.go
View file

@ -1,7 +1,9 @@
// Package tgbotapi has bindings for interacting with the Telegram Bot API.
package tgbotapi
import "net/http"
import (
"net/http"
)
// BotAPI has methods for interacting with all of Telegram's Bot API endpoints.
type BotAPI struct {