BotexTelegram.Helpers.Menu (botex_telegram v2.0.3)

Summary

Functions

create telegram menu buttons from BotEx.Models.Menu

Finds and returns the specified menu

Functions

create_menu_buttons(menu, params)

@spec create_menu_buttons(BotEx.Models.Menu.t(), any()) ::
  Telegex.Type.InlineKeyboardMarkup.t()

create telegram menu buttons from BotEx.Models.Menu

get_menu(name, menus)

@spec get_menu(binary(), map()) :: BotEx.Models.Menu.t()

Finds and returns the specified menu

Parameters

  • name: menu name
  • menu: full menu

get_menu_caption(menu)

@spec get_menu_caption(BotEx.Models.Menu.t()) :: any()