basic tests/examples, don't return updates chan, cleaned text

This commit is contained in:
Syfaro 2015-07-29 05:41:41 -04:00
parent 5e5de566ee
commit c12c67adde
4 changed files with 113 additions and 9 deletions

View file

@ -5,8 +5,8 @@ import (
"time"
)
// UpdatesChan returns a chan that is called whenever a new message is gotten.
func (bot *BotAPI) UpdatesChan(config UpdateConfig) (chan Update, error) {
// UpdatesChan starts a channel for getting updates.
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
}