@@ -1944,6 +1944,7 @@ export type Sender = {
1944
1944
* - [Message action](https://developers.line.biz/en/reference/messaging-api/#message-action)
1945
1945
* - [URI action](https://developers.line.biz/en/reference/messaging-api/#uri-action)
1946
1946
* - [Datetime picker action](https://developers.line.biz/en/reference/messaging-api/#datetime-picker-action)
1947
+ * - [Rich menu switch action](https://developers.line.biz/en/reference/messaging-api/#richmenu-switch-action)
1947
1948
* - [Camera action](https://developers.line.biz/en/reference/messaging-api/#camera-action)
1948
1949
* - [Camera roll action](https://developers.line.biz/en/reference/messaging-api/#camera-roll-action)
1949
1950
* - [Location action](https://developers.line.biz/en/reference/messaging-api/#location-action)
@@ -1953,6 +1954,7 @@ export type Action<ExtraFields = { label: string }> = (
1953
1954
| MessageAction
1954
1955
| URIAction
1955
1956
| DatetimePickerAction
1957
+ | RichMenuSwitchAction
1956
1958
| { type : "camera" }
1957
1959
| { type : "cameraRoll" }
1958
1960
| { type : "location" }
@@ -2081,6 +2083,28 @@ export type Size = {
2081
2083
height : number ;
2082
2084
} ;
2083
2085
2086
+ /**
2087
+ * When a control associated with this action is tapped, the URI specified in
2088
+ * the `uri` property is opened.
2089
+ */
2090
+ export type RichMenuSwitchAction = {
2091
+ type : "richmenuswitch" ;
2092
+ /**
2093
+ * Action label. Optional for rich menus. Read when the user's device accessibility feature is enabled.
2094
+ * Max character limit: 20. Supported on LINE for iOS 8.2.0 or later.
2095
+ */
2096
+ label ?: string ;
2097
+ /**
2098
+ * Rich menu alias ID to switch to.
2099
+ */
2100
+ richMenuAliasId : string ;
2101
+ /**
2102
+ * String returned by the postback.data property of the postback event via a webhook
2103
+ * Max character limit: 300
2104
+ */
2105
+ data : string ;
2106
+ } ;
2107
+
2084
2108
/**
2085
2109
* Rich menus consist of either of these objects.
2086
2110
*
0 commit comments