Message Types: Outbound

The following elements are sendable through Line; however, be aware of the restrictions and supported choices for each element.

Text

{
    "type": "text",
    "text": "Hi John,how are you?"
}

Image

{
  "type": "image",
  "caption": "Sample image",
  "originalUrl": "https://i.picsum.photos/id/502/200/300.jpg?hmac=aHrprSZ5m8KmqTIrgi4dr8YmRjrN_BppdP5jCNrXB0E",
  "contentType": "image/jpeg",
  "previewUrl": "https://i.picsum.photos/id/502/200/300.jpg?hmac=aHrprSZ5m8KmqTIrgi4dr8YmRjrN_BppdP5jCNrXB0E"
}

Video

{
    "type": "video",
    "url": "https://www.buildquickbots.com/whatsapp/media/sample/video/sample01.mp4",
    "previewUrl": "https://www.buildquickbots.com/whatsapp/media/sample/video/sample01.mp4",
    "caption": "Sample video"
}

Audio

{
    "type": "audio",
    "url": "https://www.buildquickbots.com/whatsapp/media/sample/audio/sample01.mp3",
    "duration": 12345
}

Handover

{
    "text": "hi  i am ramij",
    "type": "handover",
    "destination": "kolkata",
    "sender": "ramij"
}

Stickers

{
    "type": "sticker",
    "url": "http://www.buildquickbots.com/whatsapp/stickers/SampleSticker01.webp",
    "caption": "rock",
    "contentType": "image/webp",
    "urlExpiry": 1624957279044
}

Location

{
    "type": "location",
    "longitude": -122.425332,
    "latitude": 37.758056,
    "name": "Gupshup",
    "address": "Mumbai"
}