Module TelegramApi.Update

module Update: sig .. end

type update = 
| Message of int * TelegramApi.Message.message
| EditedMessage of int * TelegramApi.Message.message
| InlineQuery of int * TelegramApi.InlineQuery.inline_query
| ChosenInlineResult of int * TelegramApi.InlineQuery.chosen_inline_result
| CallbackQuery of int * TelegramApi.CallbackQuery.callback_query
Stores the info for updates to a chat/group
val read : Yojson.Safe.json -> update
Read an update out of some JSON
val get_id : update -> int
Get the update_id out of an arbitrary update object