FlowRunner.CustomBlocks.WhatsAppCatalog (flow_runner v6.15.1)

Copy Markdown

A block to handle WhatsApp catalog messages.

WhatsApp catalog messages allow businesses to showcase their products or services within the WhatsApp conversation. This block handles the display of catalog information with optional footer text.

The whatsapp_catalog block compiles to this FLOIP block. The text config parameter is required for the catalog body text. The footer parameter is optional.

Summary

Functions

Returns all block documentation defined in this module.

For the parameter map given, read the optional keys and return a map for those values.

Functions

block_docs()

@spec block_docs() :: [Keyword.t()]

Returns all block documentation defined in this module.

Each block doc entry is a keyword list with keys like :type, :description, :config, etc., plus a :category key added from @block_category.

read_optional_params(params, keys)

@spec read_optional_params(map(), [atom()]) :: %{optional(atom()) => term()}

For the parameter map given, read the optional keys and return a map for those values.

The keys of the map are the keys supplied to this function but converted to atoms.

The key only exists on the returned map if a value for the key exists.