Skip to content

Commit 6f4f40b

Browse files
[fix #205] Support icon-nickname-switch (#207)
1 parent a9aeedf commit 6f4f40b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

lib/types.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,12 @@ export type MessageCommon = {
497497
* the quickReply property of the last message object is displayed.
498498
*/
499499
quickReply?: QuickReply;
500+
/**
501+
* [Change icon and display name](https://developers.line.biz/en/docs/messaging-api/icon-nickname-switch/)
502+
*
503+
* When sending a message from the LINE Official Account, you can specify the `sender.name` and the `sender.iconUrl` properties in [Message objects](https://developers.line.biz/en/reference/messaging-api/#message-objects).
504+
*/
505+
sender?: Sender;
500506
};
501507

502508
/**
@@ -1744,6 +1750,23 @@ export type QuickReplyItem = {
17441750
action: Action;
17451751
};
17461752

1753+
export type Sender = {
1754+
/**
1755+
* Display name
1756+
*
1757+
* - Max character limit: 20
1758+
* - Certain words such as `LINE` may not be used.
1759+
*/
1760+
name?: string;
1761+
/**
1762+
* Icon image URL
1763+
*
1764+
* - Max character limit: 1000
1765+
* - URL scheme: https
1766+
*/
1767+
iconUrl?: string;
1768+
};
1769+
17471770
/**
17481771
* These are types of actions for your bot to take when a user taps a button or an image in a message.
17491772
*

0 commit comments

Comments
 (0)