annotation Tourmaline::OnCallbackQuery

Overview

Run the annotated method when a matching callback_query is found, passing in a Context object.

Example:

@[OnCallbackQuery("button_click")]
def on_button_click(ctx)
  pp ctx.update_action
end

Defined in:

tourmaline/annotations.cr