package telegraml

  1. Overview
  2. Docs

Used to represent an individual button on a custom keyboard

type keyboard_button = {
  1. text : string;
  2. request_contact : bool option;
  3. request_location : bool option;
}

Represents the button's data

val create : text:string -> ?request_contact:bool option -> ?request_location:bool option -> unit -> keyboard_button

Create a keyboard_button in a concise manner

Prepare an outgoing keyboard_button by serializing it to JSON

val prepare : keyboard_button -> Yojson.Safe.json

Prepare an outgoing keyboard_button by serializing it to JSON

OCaml

Innovation. Community. Security.