Skip to content

Commit

Permalink
fix(Viber): add type: 'keyboard' to the Keyboard type (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin authored Sep 2, 2021
1 parent 4bd5ebe commit 30a4906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/messaging-api-viber/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ The Viber API allows sending a custom keyboard using the send_message API, to su
```js
client.sendText(USER_ID, 'Hello', {
keyboard: {
type: 'keyboard',
defaultHeight: true,
bgColor: '#FFFFFF',
buttons: [
Expand Down
1 change: 1 addition & 0 deletions packages/messaging-api-viber/src/ViberTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ export type UserOnlineStatus = {
};

export type Keyboard = {
type: 'keyboard';
buttons: KeyboardButton[];
bgColor?: string;
defaultHeight?: boolean;
Expand Down

0 comments on commit 30a4906

Please sign in to comment.