View Source Glific.Communications.Message (Glific v5.1.6)
The Message Communication Context, which encapsulates and manages tags and the related join tables.
Link to this section Summary
Functions
Callback in case of any error while sending the message
Callback when message send successfully.
Callback when we receive a message from whats app
Send message to receiver using define provider.
Callback to update the provider status for a message
Link to this section Functions
@spec handle_error_response(Tesla.Env.t() | map(), Glific.Messages.Message.t()) :: {:error, String.t()}
Callback in case of any error while sending the message
@spec handle_success_response(Tesla.Env.t(), Glific.Messages.Message.t()) :: {:ok, Glific.Messages.Message.t()}
Callback when message send successfully.
Callback when we receive a message from whats app
@spec send_message(Glific.Messages.Message.t(), map()) :: {:ok, Glific.Messages.Message.t()} | {:error, String.t()}
Send message to receiver using define provider.
Callback to update the provider status for a message