# Message types

With the Messaging API, you can make your bot send these types of messages. To make a message interactive, you can specify an action on a message for users to trigger. For the specification of each message type, see Message objects in the Messaging API reference.

# Text message

Text messages contain text, including emojis. To send a text message, add the text in the message object you send with the Messaging API. For more information, see Text message in the Messaging API reference.

Text message

You can use LINE emojis and Unicode emojis in text messages. Check a list of LINE emojis you can send with the Messaging API.

Emoji

Text decoration and resizing

To decorate or resize your text, use Flex Messages.

# Sticker message

Stickers help you to make your bot more appealing and enjoyable to users. To send a sticker with the Messaging API, specify the sticker's package ID and sticker ID in the message object. Check a list of available stickers you can send. For more information, see the Sticker message in the Messaging API reference.

Sticker message

# Image message

Image messages deliver a single image file to users. When you send an image, specify two URLs in the message object. One is for the original image and one is for preview. The preview image is the image displayed in a chat, so specify an image smaller than the original image.

When the user taps the preview image, the full image is displayed as shown below. Make sure the URLs have the HTTPS (TLS 1.2 or later) protocol. For more information, see the Image message in the Messaging API reference.

Image message Full image message

# Video message

Video messages deliver a single video file to users. When you send a video message, specify two URLs in the message object, one for the video file and one for the preview.

LINE plays the video when the user taps the preview. Make sure the URLs have the HTTPS (TLS 1.2 or later) protocol. For more information, see the Video message in the Messaging API reference.

Video message

# Audio message

Audio messages deliver a single audio file to users. To send an audio file, specify a URL to the file and the duration in the message object.

Make sure the URL has the HTTPS (TLS 1.2 or later) protocol. For more information, see Audio message in the Messaging API reference.

Audio message

# Location message

Location messages deliver location information to users. Specify in the message object the title, address, latitude coordinate, and longitude coordinate. For more information, see Location message in the Messaging API reference.

Location message

# Imagemap message

Imagemap messages are messages with an image that has multiple tappable areas. You can set a tappable area to open a webpage or send a message on the user's behalf. You can also set to play a video over the image and display a link text when the playback is finished. For more information, see Imagemap message in the Messaging API reference.

Imagemap message

# Template message

Template messages have predefined layouts that help you create richer experiences for your users. Use actions to make users to interact with your bot. A tap is all that is required for users to trigger an action. This is much simpler than having to type in a message.

Available templates are:

For more information about template messages, see Template messages in the Messaging API reference.

# Buttons template

Buttons templates contain slots for an image, title, text and action buttons. In addition to buttons, you can set an action also on image, title, or text area. An action is triggered when a user taps the entity set with an action. For more information, see Buttons template in the Messaging API reference.

Buttons template message

# Confirm template

Confirm templates contain slots for text and two buttons. For more information, see Confirm template in the Messaging API reference.

Confirm template message

Carousel templates contain multiple columns that users can cycle through. In addition to buttons, you can set an action in each column object.

An action is triggered when a user taps anywhere in the image, title, or text area of a column object. For more information, see Carousel template in the Messaging API reference.

Carousel template message

Image carousel templates contain multiple images that users can cycle through. For more information, see Image carousel template in the Messaging API reference.

Image carousel template message

# Flex Message

Flex Messages are messages with a customizable layout. You can customize the layout within the boundary of the CSS Flexible Box (CSS Flexbox) (opens new window) specification. For more information, see Send Flex Messages and Flex Message in the Messaging API reference.

Flex Message examples

# Common features

This feature is applicable on all message types.

# Quick reply

Quick reply buttons are available on all message types and displayed at the bottom of a chat. Users can tap one of the buttons to reply to your bot. For more information, see Use quick replies, and Quick reply in the Messaging API reference.

Quick reply sample

Learn more about the Messaging API: