package telegraml

  1. Overview
  2. Docs

Markup options for users to reply to sent messages

type reply_keyboard_markup = {
  1. keyboard : KeyboardButton.keyboard_button list list;
  2. resize_keyboard : bool option;
  3. one_time_keyboard : bool option;
  4. selective : bool option;
}

Represents the custom keyboard type

type inline_keyboard_markup = {
  1. inline_keyboard : InlineKeyboardButton.inline_keyboard_button list list;
}

Represents a custom inline keyboard

type reply_keyboard_hide = {
  1. selective : bool option;
}

Represents the request to hide a keyboard

type force_reply = {
  1. selective : bool option;
}

Represents the request to force a reply

type reply_markup =
  1. | ReplyKeyboardMarkup of reply_keyboard_markup
  2. | InlineKeyboardMarkup of inline_keyboard_markup
  3. | ReplyKeyboardHide of reply_keyboard_hide
  4. | ForceReply of force_reply

Represents all possible reply markup options

val create_reply_keyboard_markup : keyboard:KeyboardButton.keyboard_button list list -> ?resize_keyboard:bool option -> ?one_time_keyboard:bool option -> ?selective:bool option -> unit -> reply_markup

Create a ReplyKeyboardMarkup : reply_markup in a concise way

val create_inline_keyboard_markup : inline_keyboard:InlineKeyboardButton.inline_keyboard_button list list -> unit -> reply_markup

Create an InlineKeyboardMarkup : reply_markup in a concise way

val create_reply_keyboard_hide : ?selective:bool option -> unit -> reply_markup

Create a ReplyKeyboardHide : reply_markup in a concise way

val create_force_reply : ?selective:bool option -> unit -> reply_markup

Create a ForceReply : reply_markup in a concise way

OCaml

Innovation. Community. Security.