View Source GlificWeb.Providers.Gupshup.Controllers.MessageController (Glific v5.1.6)

Dedicated controller to handle different types of inbound message from Gupshup

Link to this section Summary

Functions

Callback for gupshup audio type

Callback for gupshup file type

Callback for gupshup image type

Callback for interactive list

Callback for interactive quick reply type

Callback for gupshup sticker image

Parse text message payload and convert that into Glific message struct

Callback for gupshup video type

Link to this section Functions

@spec audio(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for gupshup audio type

@spec file(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for gupshup file type

@spec image(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for gupshup image type

@spec list(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for interactive list

Link to this function

quick_reply(conn, params)

View Source
@spec quick_reply(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for interactive quick reply type

@spec sticker(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for gupshup sticker image

@spec text(Plug.Conn.t(), map()) :: Plug.Conn.t()

Parse text message payload and convert that into Glific message struct

@spec video(Plug.Conn.t(), map()) :: Plug.Conn.t()

Callback for gupshup video type