Glific v0.3.1 Glific.Communications.Message View Source
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 succsully
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
Specs
handle_error_response(Tesla.Env.t(), Glific.Messages.Message.t()) :: {:error, String.t()}
Callback in case of any error while sending the message
Specs
handle_success_response(Tesla.Env.t(), Glific.Messages.Message.t()) :: {:ok, Glific.Messages.Message.t()}
Callback when message send succsully
Specs
Callback when we receive a message from whats app
Specs
send_message(Glific.Messages.Message.t()) :: {:ok, Glific.Messages.Message.t()} | {:error, String.t()}
Send message to receiver using define provider.
Link to this function
update_provider_status(provider_message_id, provider_status, errors)
View SourceSpecs
Callback to update the provider status for a message