LemonChannels.Adapters.Telegram.Transport.Normalize (lemon_channels v0.1.0)

View Source

Telegram-local normalization helpers for raw updates and transport timer events.

The goal is to stop re-parsing raw Telegram payload shapes throughout the transport shell. This module keeps the normalization boundary local to the Telegram adapter for now.

Summary

Functions

event(state, event, update_id \\ nil)

@spec event(map(), term(), integer() | nil) ::
  {:ok, LemonChannels.Adapters.Telegram.Transport.InboundContext.t()}
  | {:error, term()}
  | {:skip, map()}