From afda722fc3cf4eb4cb59c1652c28b7a57210f4a7 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Tue, 9 Oct 2018 00:47:19 -0500 Subject: [PATCH] Remove unused error returned by GetUpdatesChan. --- bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.go b/bot.go index 5f9b079..7766346 100644 --- a/bot.go +++ b/bot.go @@ -378,7 +378,7 @@ func (bot *BotAPI) GetWebhookInfo() (WebhookInfo, error) { } // GetUpdatesChan starts and returns a channel for getting updates. -func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) { +func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) UpdatesChannel { ch := make(chan Update, bot.Buffer) go func() { @@ -407,7 +407,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) { } }() - return ch, nil + return ch } // StopReceivingUpdates stops the go routine which receives updates