BotEx.Models.Menu (bot_ex v1.0.2)

Summary

Types

t()

Module, that represents menu struct.

Types

t()

@type t() :: %BotEx.Models.Menu{
  buttons: [BotEx.Models.Button.t(), ...] | function(),
  custom: any(),
  name: binary(),
  text: nil | binary()
}

Module, that represents menu struct.

Fields:

  • name: menu unique identifier,
  • text: menu text,
  • buttons: list of buttons BotEx.Models.Button or a function that returns list of buttons
  • custom: any data