Media Messages

JSON Samples

Sample 1: Image

Changes to be made to the below code snippet:

  • Link to image URL ("media_url" key)
  • Caption text ("caption" key)
interactive:{"type":"media","media_url":"https://www.kaleyra.com/wp-content/uploads/kaleyra.png","caption":"Image Caption"}

Sample 2 : Audio

Changes to be made to the below code snippet: :

  • Link to audio URL ("media_url" key)
interactive:{"type":"media","media_url":"https://samplelib.com/lib/preview/mp3/sample-3s.mp3"}


Sample 3: Video

Changes to be made to the below code snippet:

  • Link to video URL ("media_url" key)
  • Caption text ("caption" key)
interactive:{"type":"media","media_url":"http://techslides.com/demos/sample-videos/small.mp4","caption":"Video Caption"}

Sample 4: Document

Changes to be made to the below code snippet:

  • Link to document URL ("media_url" key)
  • Caption text ("caption" key)
interactive:{"type":"media","media_url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption"}