API reference Development guidelines Quickstart Guides - Sending messages
- Character counting in a text
- Getting user IDs
- Stickers
- LINE emoji
- Use audiences
- Use quick replies
- Get statistics per aggregation unit
- Use LINE features with the LINE URL scheme
- Using beacons
- Sharing your LINE Official Account with users
- Linking user accounts
- Change icon and display name
- Get quote tokens
- Retrying a failed API request
- Stop using your LINE Official Account
- Stop using the Messaging API
- Tutorial - Make a reply bot
Webhooks Rich menus LINE Bot Designer Flex Message Concepts Reference Resources
API reference Development guidelines Quickstart Guides - Sending messages
- Character counting in a text
- Getting user IDs
- Stickers
- LINE emoji
- Use audiences
- Use quick replies
- Get statistics per aggregation unit
- Use LINE features with the LINE URL scheme
- Using beacons
- Sharing your LINE Official Account with users
- Linking user accounts
- Change icon and display name
- Get quote tokens
- Retrying a failed API request
- Stop using your LINE Official Account
- Stop using the Messaging API
- Tutorial - Make a reply bot
Webhooks Rich menus LINE Bot Designer Flex Message Concepts Reference Resources
# 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:
- Send push message
- Send multicast message
- Send narrowcast message
- Send broadcast message
- Send reply message
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 specifying 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.
# 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.
# Chat list
- The icon and display name of the LINE Official Account displayed on the chat 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'
.
# Chat 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.
# Related pages
- "Change icon and display name" section of the Messaging API reference documentation