pub type Update { Update(message: Message, update_id: Int) }
Update(message: Message, update_id: Int)
Official reference: https://core.telegram.org/bots/api#update
update_id
The update’s unique identifier.
pub fn decode(json: Dynamic) -> Result(Update, List(DecodeError))
Decode a message from the Telegram API.