View Source ExGram.Dsl.Keyboard (ex_gram v0.51.0)

Keyboard DSL to create inline keyboards easily

Example:

keyb = keyboard :inline do
  row do
    button "A", callback_data: "a"
    button "B", callback_data: "b"
  end

  row do
    button "C", callback_data: "c"
    button "D", callback_data: "d"
  end
end

Summary

Functions

Link to this macro

button(text, opts \\ [])

View Source (macro)
Link to this macro

keyboard(which_keyboard, list)

View Source (macro)