Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 30a4906

Browse files
fix(Viber): add type: 'keyboard' to the Keyboard type (#654)
1 parent 4bd5ebe commit 30a4906

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎packages/messaging-api-viber/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ The Viber API allows sending a custom keyboard using the send_message API, to su
102102
```js
103103
client.sendText(USER_ID, 'Hello', {
104104
keyboard: {
105+
type: 'keyboard',
105106
defaultHeight: true,
106107
bgColor: '#FFFFFF',
107108
buttons: [

‎packages/messaging-api-viber/src/ViberTypes.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ export type UserOnlineStatus = {
286286
};
287287

288288
export type Keyboard = {
289+
type: 'keyboard';
289290
buttons: KeyboardButton[];
290291
bgColor?: string;
291292
defaultHeight?: boolean;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /