- Added EditMessageMedia + Upload

pull/216/head
AliMVP 7 years ago
parent f1ca3f538e
commit b0cd544189
  1. 15
      bot.go

@ -25,13 +25,8 @@ type BotAPI struct {
Debug bool `json:"debug"` Debug bool `json:"debug"`
Buffer int `json:"buffer"` Buffer int `json:"buffer"`
master
Self User `json:"-"` Self User `json:"-"`
Client *http.Client `json:"-"` Client *http.Client `json:"-"`
=======
Self User `json:"-"`
Client *http.Client `json:"-"`
master
shutdownChannel chan interface{} shutdownChannel chan interface{}
} }
@ -48,15 +43,9 @@ func NewBotAPI(token string) (*BotAPI, error) {
// It requires a token, provided by @BotFather on Telegram. // It requires a token, provided by @BotFather on Telegram.
func NewBotAPIWithClient(token string, client *http.Client) (*BotAPI, error) { func NewBotAPIWithClient(token string, client *http.Client) (*BotAPI, error) {
bot := &BotAPI{ bot := &BotAPI{
master
Token: token, Token: token,
Client: client, Client: client,
Buffer: 100, Buffer: 100,
=======
Token: token,
Client: client,
Buffer: 100,
master
shutdownChannel: make(chan interface{}), shutdownChannel: make(chan interface{}),
} }
@ -499,11 +488,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
return return
default: default:
} }
master
=======
master
updates, err := bot.GetUpdates(config) updates, err := bot.GetUpdates(config)
if err != nil { if err != nil {
log.Println(err) log.Println(err)