KapsoEx.Platform.Messages (kapso_ex v0.1.0)

Copy Markdown View Source

Query WhatsApp messages across all conversations and numbers of the project. To send messages use KapsoEx.WhatsApp.Messages.

Summary

Functions

Gets a message by its WhatsApp message ID (WAMID).

Lists messages, newest first, with cursor pagination.

Types

result()

@type result() :: {:ok, map()} | {:error, KapsoEx.Error.t()}

Functions

get(client, message_id)

@spec get(KapsoEx.Client.t(), String.t()) :: result()

Gets a message by its WhatsApp message ID (WAMID).

list(client, params \\ [])

@spec list(KapsoEx.Client.t(), map() | keyword()) :: result()

Lists messages, newest first, with cursor pagination.

Params: phone_number_id, conversation_id, phone_number, business_scoped_user_id, direction, status, message_type, has_media, limit, before, after.