wax v0.6.0 Whatsapp.Models.MessageOutbound

Estructura del mensaje de Whatsapp

Link to this section Summary

Functions

Crea un mensaje nuevo

Genera la estructura necesaria para enviar un mensaje a Whatsapp

Link to this section Types

Specs

t() :: %Whatsapp.Models.MessageOutbound{
  body: term(),
  recipient: term(),
  to: term(),
  type: term()
}

Link to this section Functions

Specs

new(Keyword.t()) :: t()

Crea un mensaje nuevo

Link to this function

to_json(message)

Specs

to_json(t()) :: map()

Genera la estructura necesaria para enviar un mensaje a Whatsapp

Link to this function

validate(message)