class Tourmaline::Handlers::PhotoHandler

Defined in:

pimspiratie_bot.cr

Constant Summary

ANNOTATION = OnPhoto

This is needed for the macro which registers the handler to know which annotation belongs to it.

Constructors

Instance Method Summary

Constructor Detail

def self.new(group = :default, priority = 0, &block : Context -> ) #

All handlers need at least these 3 things in their initialize method


[View source]

Instance Method Detail

def call(client : Client, update : Update) #

All handlers also need a #call method. This gets called on every Update, unless another handler with the same group gets called first.


[View source]