Glific v0.3.1 Glific.Flows.ContactAction View Source

Since many of the functions, also do a few actions like send a message etc centralizing it here

Link to this section Summary

Functions

Contact opts out

Given a shortcode and a context, send the right session template message to the contact

Link to this section Functions

Specs

Contact opts out

Link to this function

send_message(context, action, message_stream)

View Source

Specs

send_message(Glific.Flows.FlowContext.t(), Glific.Flows.Action.t(), [String.t()]) ::
  {:ok, map(), any()}

Given a shortcode and a context, send the right session template message to the contact