GET/bots/{botId}/persistentmenu
Gets a bot's persistent menus.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
bot.message
bot
bot.read
| Parameter | Type | Description |
|---|---|---|
| botId | integer | Bot ID required example : 2000001 format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| content | object (content) | Persistent menu to add required |
| Property | Type | Description |
|---|---|---|
| actions | array (PersistentMenuActionStruct) | List of buttons to be added to the persistent menu required maxItems : 4 |
| Property | Type | Description |
|---|---|---|
| type | string | Action type required Allowed values : message, uri, copy |
| label | string | Label displayed on an element.
|
| postback | string | Text string returned through the message.postback property maxLength : 1000 |
| text | string | Text message sent when an element is pressed. It is required for a carousel, image carousel, rich menu and quick reply, and is replaced with the label value for a button template, list template, and persistent menu. maxLength : 300 |
| uri | string | URI that opens when an element is pressed. The "http" and "https" schemas are supported. maxLength : 1000 |
| copyText | string | Text string copied to the clipboard when an element is pressed. maxLength : 1000 |
| i18nLabels | array (i18nLabels) | List of multilingual labels minItems : 0 |
| i18nTexts | array (i18nTexts) | List of text messages sent when an element is pressed. minItems : 0 |
| Property | Type | Description |
|---|---|---|
| language | string | Language code required Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW |
| label | string | Label displayed on an element
required |
| Property | Type | Description |
|---|---|---|
| language | string | Language code required Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW |
| text | string | Text message sent when an element is pressed. It is required for a carousel, image carousel, rich menu and quick reply, and is replaced with the label value for a button template, list template, and persistent menu. required maxLength : 300 |
example
1{2 "content": {3 "actions": [4 {5 "type": "message",6 "label": "Example label",7 "text": "Example text",8 "postback": "Example postback",9 "i18nLabels": [10 {11 "language": "en_US",12 "label": "Example label"13 }14 ],15 "i18nTexts": [16 {17 "language": "en_US",18 "text": "Example text"19 }20 ]21 },22 {23 "type": "uri",24 "label": "Example Homepage",25 "uri": "https://example.com",26 "i18nLabels": [27 {28 "language": "en_US",29 "label": "Example label"30 }31 ]32 }33 ]34 }35}