Skip to content

Commit afda722

Browse files
committed
Remove unused error returned by GetUpdatesChan.
1 parent a746f39 commit afda722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ func (bot *BotAPI) GetWebhookInfo() (WebhookInfo, error) {
378378
}
379379

380380
// GetUpdatesChan starts and returns a channel for getting updates.
381-
func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
381+
func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) UpdatesChannel {
382382
ch := make(chan Update, bot.Buffer)
383383

384384
go func() {
@@ -407,7 +407,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
407407
}
408408
}()
409409

410-
return ch, nil
410+
return ch
411411
}
412412

413413
// StopReceivingUpdates stops the go routine which receives updates

0 commit comments

Comments
 (0)