handler

Attribute Macro handler 

Source
#[handler]
Expand description

Creates a generic update handler for the function

All parameters must implement the FromUpdate trait

The macro may take those parameters:

  • rank(usize): the priority of this handler, 0 being the lowest
  • restrict (list of UpdateType): the updates that may be passed to the handler