Appearance
@line/bot-sdk / RichMenu
Type Alias: RichMenu
RichMenu =
object
Defined in: lib/types.ts:2339
Rich menus consist of either of these objects.
- Rich menu object without the rich menu ID. Use this object when you create a rich menu.
- Rich menu response object with the rich menu ID. This object is returned when you get a rich menu or get a list of rich menus.
Area objects and action objects are included in these objects.
Properties
areas
areas:
object
[]
Defined in: lib/types.ts:2368
Array of area objects which define the coordinates and size of tappable areas (Max: 20 area objects)
action
action:
Action
<{label
:string
; }>
bounds
bounds:
Area
chatBarText
chatBarText:
string
Defined in: lib/types.ts:2362
Text displayed in the chat bar (Max: 14 characters)
name
name:
string
Defined in: lib/types.ts:2358
Name of the rich menu.
This value can be used to help manage your rich menus and is not displayed to users.
(Max: 300 characters)
selected
selected:
boolean
Defined in: lib/types.ts:2349
true
to display the rich menu by default. Otherwise, false
.
size
size:
Size
Defined in: lib/types.ts:2345
size
object which contains the width and height of the rich menu displayed in the chat. Rich menu images must be one of the following sizes: 2500x1686px or 2500x843px.