wax v0.6.0 Whatsapp.Models.MessageOutboundMediaHsm

Model in charge of sending templates with media: https://developers.facebook.com/docs/whatsapp/api/messages/message-templates/media-message-templates

Link to this section Summary

Functions

Agrega el binario del archivo media al campo de data

Crea un mensaje nuevo

Link to this section Types

Specs

t() :: %Whatsapp.Models.MessageOutboundMediaHsm{
  caption: term(),
  data: term(),
  element_name: term(),
  extension: term(),
  file_name: term(),
  language_code: term(),
  language_policy: term(),
  media_id: term(),
  mime_type: term(),
  namespace: term(),
  params: term(),
  to: term(),
  type: term()
}

Link to this section Functions

Link to this function

_add_binary_data(msg)

Specs

_add_binary_data(map()) :: map()

Agrega el binario del archivo media al campo de data

Specs

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

Crea un mensaje nuevo

Link to this function

set_media_id(media, media_id)

Link to this function

to_json(message)

Link to this function

validate(message)