Struct representing an error returned by the Telegram Bot API.
Captures Telegram error responses in a structured form.
Fields
:type- Source of the error (:telegramfor API errors):code- Numeric error code fromerror_code(nil if absent):reason- Optional atom describing the error (nil unless provided):description- Human-readable description from the API:retry_after- Seconds to wait before retrying, fromparameters.retry_after(nil if absent):raw- The raw response body, for callers that need the full payload
Summary
Functions
Builds an Error struct from a raw Telegram API response body.