telega/models/update

Types

pub type Update {
  Update(message: Message, update_id: Int)
}

Constructors

  • Update(message: Message, update_id: Int)

    Official reference: https://core.telegram.org/bots/api#update

    Arguments

    • update_id

      The update’s unique identifier.

Functions

pub fn decode(json: Dynamic) -> Result(Update, List(DecodeError))

Decode a message from the Telegram API.

Search Document