annotation Tourmaline::OnCallbackQuery

Overview

Add a callback query handler which optionally listens for a specific data value.

Options:

Example:

@[OnCallbackQuery("back")]
def back_button_pressed(client, update)
  query = update.callback_query.not_nil!
  query.answer("You pressed back!")
end

Defined in: