Nostr.Event.ChannelMessage (Nostr Lib v0.2.1) (event) (nip28)

View Source

Channel message

Defined in NIP 28 https://github.com/nostr-protocol/nips/blob/master/28.md

Summary

Functions

Parses a kind 42 event into a ChannelMessage struct.

Types

t()

@type t() :: %Nostr.Event.ChannelMessage{
  channel: <<_::32, _::_*8>>,
  event: Nostr.Event.t(),
  message: String.t(),
  relay: URI.t(),
  reply_to: nil | <<_::32, _::_*8>>,
  type: :root | :reply
}

Functions

parse(event)

@spec parse(event :: Nostr.Event.t()) :: t()

Parses a kind 42 event into a ChannelMessage struct.