Message Type: Inbound

If you use Line for two-way conversation, incoming messages are transmitted to you in real time.

The following Line components are available for customers to send you messages:

Text

{
    "type": "text",
    "text": "Hi",
    "timestamp": 1672378909355,
    "message": "Hi",
    "id": "17383787159573"
}

Image

{
    "type": "image",
    "text": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383799019420",
    "url": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383799019420",
    "timestamp": 1672379062788,
    "message": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383799019420",
    "id": "17383799019420"
}

Audio

{
    "type": "audio",
    "text": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383801836711",
    "url": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383801836711",
    "timestamp": 1672379098540,
    "message": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383801836711",
    "id": "17383801836711"
}

Video

{
    "type": "video",
    "text": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383818399178",
    "url": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383818399178",
    "timestamp": 1672379311944,
    "message": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383818399178",
    "id": "17383818399178"
}

File

{
    "type": "file",
    "text": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383831022194?fileName=sample.pdf",
    "url": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383831022194?fileName=sample.pdf",
    "timestamp": 1672379475119,
    "message": "https://dev-filemanager.gupshup.io/fm/lineMedia/callbackgetbot/17383831022194?fileName=sample.pdf",
    "id": "17383831022194",
    "fileName": "sample.pdf"
}

Stickers

{
    "type": "sticker",
    "text": "51626494:11538",
    "timestamp": 1672379259477,
    "message": "51626494:11538",
    "id": "17383814339003"
}

Postback

{
    "type": "postback",
    "text": "action=add&itemid=222",
    "timestamp": 1671774922345,
    "message": "action=add&itemid=222"
}

Location

{
    "type": "location",
    "latitude": "0.0",
    "longitude": "0.0",
    "timestamp": 1672379153839,
    "id": "17383806144060"
}