GelotvBot.Message (GeloTVBot v0.1.0)

Copy Markdown View Source

Normalized chat message.

Metadata is kept separately from body by default. Use GelotvBot.Metadata.attach/2 only when an in-band, visible, signed token is needed for downstream systems.

Summary

Types

t()

@type t() :: %GelotvBot.Message{body: String.t(), metadata: map()}

Functions

new(body, metadata \\ %{})

@spec new(String.t(), map()) :: t()