We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a746f39 commit afda722Copy full SHA for afda722
bot.go
@@ -378,7 +378,7 @@ func (bot *BotAPI) GetWebhookInfo() (WebhookInfo, error) {
378
}
379
380
// GetUpdatesChan starts and returns a channel for getting updates.
381
-func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
+func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) UpdatesChannel {
382
ch := make(chan Update, bot.Buffer)
383
384
go func() {
@@ -407,7 +407,7 @@ func (bot *BotAPI) GetUpdatesChan(config UpdateConfig) (UpdatesChannel, error) {
407
408
}()
409
410
- return ch, nil
+ return ch
411
412
413
// StopReceivingUpdates stops the go routine which receives updates
0 commit comments