basic tests/examples, don't return updates chan, cleaned text
This commit is contained in:
parent
5e5de566ee
commit
c12c67adde
4 changed files with 113 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue