all repos — telegram-bot-api @ afda722fc3cf4eb4cb59c1652c28b7a57210f4a7

Golang bindings for the Telegram Bot API

Remove unused error returned by GetUpdatesChan.
Syfaro syfaro@huefox.com
Tue, 09 Oct 2018 00:47:19 -0500
commit

afda722fc3cf4eb4cb59c1652c28b7a57210f4a7

parent

a746f39d224dc1070eb527fac4fdb70fd0ac0964

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M bot.gobot.go

@@ -378,7 +378,7 @@ return info, err

} // 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 @@ }

} }() - return ch, nil + return ch } // StopReceivingUpdates stops the go routine which receives updates