View Source WhatsappElixir.Static (whatsapp_elixir v0.1.1)

Utility functions for processing data received from the WhatsApp webhook.

Link to this section Summary

Functions

Helper function to check if the field changed in the data received from the webhook.

Extracts the audio of the sender from the data received from the webhook.

Extracts the author of the message from the data received from the webhook.

Extracts the delivery status of the message from the data received from the webhook.

Extracts the document of the sender from the data received from the webhook.

Extracts the image of the sender from the data received from the webhook.

Extracts the response of the interactive message from the data received from the webhook.

Extracts the location of the sender from the data received from the webhook.

Extracts the text message of the sender from the data received from the webhook.

Extracts the message id of the sender from the data received from the webhook.

Extracts the timestamp of the message from the data received from the webhook.

Gets the type of the message sent by the sender from the data received from the webhook.

Extracts the mobile number of the sender from the data received from the webhook.

Extracts the name of the sender from the data received from the webhook.

Extracts the video of the sender from the data received from the webhook.

Checks if the data received from the webhook is a message.

Link to this section Functions

Helper function to check if the field changed in the data received from the webhook.

Extracts the audio of the sender from the data received from the webhook.

Extracts the author of the message from the data received from the webhook.

Extracts the delivery status of the message from the data received from the webhook.

Extracts the document of the sender from the data received from the webhook.

Extracts the image of the sender from the data received from the webhook.

Link to this function

get_interactive_response(data)

View Source

Extracts the response of the interactive message from the data received from the webhook.

Extracts the location of the sender from the data received from the webhook.

Extracts the text message of the sender from the data received from the webhook.

Extracts the message id of the sender from the data received from the webhook.

Link to this function

get_message_timestamp(data)

View Source

Extracts the timestamp of the message from the data received from the webhook.

Gets the type of the message sent by the sender from the data received from the webhook.

Extracts the mobile number of the sender from the data received from the webhook.

Extracts the name of the sender from the data received from the webhook.

Extracts the video of the sender from the data received from the webhook.

Checks if the data received from the webhook is a message.