package telegraml

  1. Overview
  2. Docs

Used to represent an individual button on a custom inline keyboard

type inline_keyboard_button = {
  1. text : string;
  2. url : string option;
  3. callback_data : string option;
  4. switch_inline_query : string option;
}

Represents the button's data

val create : text:string -> ?url:string option -> ?callback_data:string option -> ?switch_inline_query:string option -> unit -> inline_keyboard_button

Create an inline_keyboard_button in a concise manner

Prepare an outgoing inline_keyboard_button by serializing it to JSON

Prepare an outgoing inline_keyboard_button by serializing it to JSON

OCaml

Innovation. Community. Security.