Module TelegramApi.CallbackQuery

module CallbackQuery: sig .. end
This module is used for dealing with the results returned by clicking on callback buttons on inline keyboards

type callback_query = {
   id : string;
   from : TelegramApi.User.user;
   message : TelegramApi.Message.message option;
   inline_message_id : string option;
   data : string;
}
Represents the reply from the callback query
val create : id:string ->
from:TelegramApi.User.user ->
?message:TelegramApi.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