ErrorHandler | R Documentation |
Handler
class to handle errors in the
Dispatcher
.
ErrorHandler(callback) is.ErrorHandler(x)
callback |
A function that takes |
x |
Object to be tested. |
An R6Class
object.
## Not run: updater <- Updater(token = "TOKEN") # Create error callback error_callback <- function(bot, error) { warning(simpleWarning(conditionMessage(error), call = "Updates polling")) } # Register it to the updater's dispatcher updater$dispatcher$add_handler(ErrorHandler(error_callback)) # or updater <- updater + ErrorHandler(error_callback) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.