diff --git a/updates.go b/updates.go index 72f518b..430e25b 100644 --- a/updates.go +++ b/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 }