package telegraml

  1. Overview
  2. Docs

This module is used for dealing with the results returned by clicking on callback buttons on inline keyboards

type callback_query = {
  1. id : string;
  2. from : User.user;
  3. message : Message.message option;
  4. inline_message_id : string option;
  5. data : string;
}

Represents the reply from the callback query

val create : id:string -> from:User.user -> ?message:Message.message option -> ?inline_message_id:string option -> data:string -> unit -> callback_query

Create a callback_query in a concise manner

Read a callback_query out of some JSON

val read : Yojson.Safe.json -> callback_query

Read a callback_query out of some JSON

OCaml

Innovation. Community. Security.