Whatsapp.Models.MessageOutbound (wax v1.1.4)

Estructura del mensaje de Whatsapp

Summary

Functions

Crea un mensaje nuevo

Genera la estructura necesaria para enviar un mensaje a Whatsapp

Types

t()

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

Functions

new(options)

@spec new(Keyword.t()) :: t()

Crea un mensaje nuevo

to_json(message)

@spec to_json(t()) :: map()

Genera la estructura necesaria para enviar un mensaje a Whatsapp

validate(message)