Information
This page is not available in Chinese yet.

# Change icon and display name

# Summary

In the LINE Official Account, when sending a message, you can specify the icon displayed in LINE and a part of the account name.

  • When using the following APIs, the icon and display name can be changed. There is no restriction on the type of Message objects:
  • When sending the message without specifying the icon and display name, the message is sent with the standard icon and account name of the LINE Official Account.
  • When specifying an icon, it is recommended to send a message to the test account to confirm that it is displayed as expected before using it.

# When specifing the icon and display name

The part surrounded by a green frame indicates an example of the changed icon and display name. From 'account name' appears after the changed display name. Displaying the account name prevents users from misidentifying the LINE Official Account. The account name displayed at the top of the screen will not change.

Change icon and display name

# Example request

curl -v -X POST https://api.line.me/v2/bot/message/push \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {CHANNEL_ACCESS_TOKEN}' \
-d '{
    "to": "U1234....",
    "messages": [
        {
            "type": "text",
            "text": "Hello, I am Cony!!",
            "sender": {
                "name": "Cony",
                "iconUrl": "https://line.me/conyprof"
            }
        }
    ]
}'

# Icon and display name change range

The changed icons and display names are as follows:

# Room

  • The specified icon or display name is displayed on the bubble for the message with changed icon or display name from 'account name'.
  • The display name displayed at the top of the room is not changed.
  • The icon and display name displayed on the profile screen of the LINE Official Account are not changed.

# Message search screen

  • If a message whose icon or display name from 'account name' has been changed is displayed as a search result, the specified icon and account name will be displayed.

# Talk list

  • The icon and display name of the LINE Official Account displayed on the talk list will not be changed.
  • The preview that appears when you send a non-text message, such as "(Display name) sent a photo", uses the display name (you provided when you made the API request) from 'account name'.

# Talk list search screen

  • The icon and display name of the LINE Official Account displayed in the search results will not be changed.

# Friends list

  • The LINE Official Account icon and display name displayed on the friend list will not be changed.