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

View Source

Telegram-local normalized inbound context for transport ingress handling.

This is intentionally scoped to the Telegram transport tree. It provides a small normalization boundary for Telegram updates and transport timer events without introducing a premature cross-channel abstraction.

Summary

Types

kind()

@type kind() ::
  :message
  | :callback_query
  | :buffer_flush
  | :media_group_flush
  | :approval_requested

t()

@type t() :: %LemonChannels.Adapters.Telegram.Transport.InboundContext{
  account_id: binary() | nil,
  callback_data: binary() | nil,
  callback_id: binary() | nil,
  chat_id: integer() | nil,
  debounce_ref: reference() | nil,
  inbound: map() | nil,
  kind: kind(),
  media_group_id: binary() | nil,
  message_id: integer() | nil,
  meta: map(),
  raw_update: term(),
  reply_to_id: integer() | nil,
  reply_to_text: binary() | nil,
  scope_key: term(),
  sender_id: integer() | binary() | nil,
  text: binary() | nil,
  thread_id: integer() | nil,
  user_msg_id: integer() | nil
}