Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 903 Bytes

File metadata and controls

22 lines (16 loc) · 903 Bytes

Zernio::WebhookPayloadMessageSentMessageAttachmentsInner

Properties

Name Type Description Notes
type String Attachment type (image, video, file, sticker, audio)
url String Where to fetch the attachment. For outgoing messages this is the media URL as sent, so for WhatsApp it is the URL you supplied when publishing (WhatsApp sends media by link), not a Zernio endpoint, and it needs no Zernio credentials. Contrast the inbound direction: `message.received` attachment URLs on WhatsApp point at the authenticated `GET /v1/whatsapp/media/{mediaId}`.
payload Object Additional attachment metadata [optional]

Example

require 'zernio-sdk'

instance = Zernio::WebhookPayloadMessageSentMessageAttachmentsInner.new(
  type: null,
  url: null,
  payload: null
)