v2.0.0-rc.23
Pre-release
Pre-release
What's Changed
- Allow for removing bots from the webhook server by @PaulSonOfLars in #118
- improve codeblock markdown handling by @PaulSonOfLars in #121
- Create an UpdateDispatcher interface to decouple Dispatcher and Updater components by @PaulSonOfLars in #120
Breaking changes
NewUpdater()
now takes a dispatcher as an argument. Most users should be able to migrate using this instead:
// Create updater and dispatcher.
dispatcher := ext.NewDispatcher(&ext.DispatcherOpts{
// If an error is returned by a handler, log it and continue going.
Error: func(b *gotgbot.Bot, ctx *ext.Context, err error) ext.DispatcherAction {
log.Println("an error occurred while handling update:", err.Error())
return ext.DispatcherActionNoop
},
MaxRoutines: ext.DefaultMaxRoutines,
})
updater := ext.NewUpdater(dispatcher, nil)
Full Changelog: v2.0.0-rc.22...v2.0.0-rc.23