class Tourmaline::Dispatcher

Overview

The Dispatcher is responsible for dispatching requests to the appropria

Defined in:

tourmaline/dispatcher.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client) #

[View source]

Instance Method Detail

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

[View source]
def middleware : Array(Middleware) #

[View source]
def on(*actions : UpdateAction, &block : Context -> ) #

[View source]
def process(update : Update) #

[View source]
def register(handler : EventHandler) #

[View source]
def use(*middlewares : Middleware) #

[View source]
def use(*middlewares : Middleware.class) #

[View source]