From 055e65d50a7f25e30110ffd3b204990471f49f96 Mon Sep 17 00:00:00 2001 From: chentsulin Date: Fri, 3 Sep 2021 01:23:22 +0800 Subject: [PATCH] fix(Viber): add type: 'keyboard' to the Keyboard type --- packages/messaging-api-viber/README.md | 1 + packages/messaging-api-viber/src/ViberTypes.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/messaging-api-viber/README.md b/packages/messaging-api-viber/README.md index ccc72c58..fd07fbd3 100644 --- a/packages/messaging-api-viber/README.md +++ b/packages/messaging-api-viber/README.md @@ -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: [ diff --git a/packages/messaging-api-viber/src/ViberTypes.ts b/packages/messaging-api-viber/src/ViberTypes.ts index 54d8db92..7c447277 100644 --- a/packages/messaging-api-viber/src/ViberTypes.ts +++ b/packages/messaging-api-viber/src/ViberTypes.ts @@ -286,6 +286,7 @@ export type UserOnlineStatus = { }; export type Keyboard = { + type: 'keyboard'; buttons: KeyboardButton[]; bgColor?: string; defaultHeight?: boolean;