The data of a message.received event.
message_id- Meta'swamid.id; pass it as:reply_toor to a reaction.channel,from(the customer),to(your number).type-"text","image","interactive", ... (open).text- the text, a media caption, or the chosen title of an interactive or button reply.media- aUnicom360.Webhook.InboundMediaornil.payload- Meta's object, set only for location, contacts (%{"contacts" => [...]}), reaction, sticker and unsupported messages; otherwisenil.reply_to- thewamid.of the message replied to, ornil. An interactive reply's button or row id is not passed on.timestamp,window_expires_at- ISO 8601 strings, as received.raw,extra- the JSON object, and the members this version does not model.
Summary
Types
@type t() :: %Unicom360.Webhook.InboundMessage{ channel: String.t() | nil, extra: map(), from: String.t() | nil, media: Unicom360.Webhook.InboundMedia.t() | nil, message_id: String.t() | nil, payload: map() | nil, raw: map(), reply_to: String.t() | nil, text: String.t() | nil, timestamp: String.t() | nil, to: String.t() | nil, type: String.t() | nil, window_expires_at: String.t() | nil }