Skip to content

Commit 62a3bd3

Browse files
authored
Merge pull request #420 from dlackty/input-option
Add input option type definition
2 parents 3408760 + 9040954 commit 62a3bd3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/types.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,6 +2121,25 @@ export type PostbackAction = {
21212121
* The `displayText` and `text` properties cannot both be used at the same time.
21222122
*/
21232123
displayText?: string;
2124+
/**
2125+
* The display method of such as rich menu based on user action. Specify one of the following values:
2126+
*
2127+
* - `closeRichMenu`: Close rich menu
2128+
* - `openRichMenu`: Open rich menu
2129+
* - `openKeyboard`: Open keyboard
2130+
* - `openVoice`: Open voice message input mode
2131+
*
2132+
* This property is available on LINE version 12.6.0 or later for iOS or Android.
2133+
*/
2134+
inputOption?: "closeRichMenu" | "openRichMenu" | "openKeyboard" | "openVoice";
2135+
/**
2136+
* String to be pre-filled in the input field when the keyboard is opened. Valid only when the inputOption property is set to openKeyboard. The string can be broken by a newline character (\n).
2137+
*
2138+
* Max: 300 characters
2139+
*
2140+
* This property is available on LINE version 12.6.0 or later for iOS or Android.
2141+
*/
2142+
fillInText?: string;
21242143
};
21252144

21262145
/**

0 commit comments

Comments
 (0)