From 0af9cba5014468248735d4c64376a7a19d98daa5 Mon Sep 17 00:00:00 2001 From: Donnie Adams Date: Mon, 13 Jul 2015 21:23:24 -0700 Subject: [PATCH] Changed duplicate return of updates. --- updates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }