Changed duplicate return of updates.

pull/46/head
Donnie Adams 10 years ago
parent 9f28ce1c2e
commit 0af9cba501
  1. 4
      updates.go

@ -6,7 +6,7 @@ import (
)
// UpdatesChan returns a chan that is called whenever a new message is gotten.
func (bot *BotAPI) UpdatesChan(config UpdateConfig) (chan Update, error) {
func (bot *BotAPI) UpdatesChan(config UpdateConfig) error {
bot.Updates = make(chan Update, 100)
go func() {
@ -33,5 +33,5 @@ func (bot *BotAPI) UpdatesChan(config UpdateConfig) (chan Update, error) {
}
}()
return bot.Updates, nil
return nil
}