Skip to content

class Tourmaline::Dispatcher
inherits Reference #

The Dispatcher is responsible for dispatching requests to the appropria

Constructors#

.new(client : Client) #

View source

Methods#

#event_handlers : Hash(UpdateAction, Array(EventHandlerType)) #

View source

#middleware : Array(Middleware) #

View source

#on(*actions : UpdateAction, &block : Context -> ) #

View source

#process(update : Update) #

View source

#register(handler : EventHandler) #

View source

#use(*middlewares : Middleware) #

View source

#use(*middlewares : Middleware.class) #

View source