From 8429526af4338d15092eb11d9540820066a04fbd Mon Sep 17 00:00:00 2001 From: KnorpelSenf Date: Wed, 12 Jul 2023 23:32:37 +0200 Subject: [PATCH 1/2] Fix code example The API was changed --- site/docs/plugins/keyboard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/plugins/keyboard.md b/site/docs/plugins/keyboard.md index c65cfff59..d1d6f0ab8 100644 --- a/site/docs/plugins/keyboard.md +++ b/site/docs/plugins/keyboard.md @@ -191,7 +191,7 @@ const labels = [ ]; const buttonRows = labels .map((label) => [Keyboard.text(label)]); -const keyboard = Keyboard.from(buttonRows, { resize_keyboard: true }); +const keyboard = Keyboard.from(buttonRows).resized(); ``` ### Sending a Custom Keyboard From 6528fe82f08e0cbb365f9c3902568c76c118d718 Mon Sep 17 00:00:00 2001 From: Roj Date: Thu, 13 Jul 2023 13:06:14 +0300 Subject: [PATCH 2/2] Propagate --- site/docs/es/plugins/keyboard.md | 2 +- site/docs/id/plugins/keyboard.md | 2 +- site/docs/uk/plugins/keyboard.md | 2 +- site/docs/zh/plugins/keyboard.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site/docs/es/plugins/keyboard.md b/site/docs/es/plugins/keyboard.md index 31b30c0a4..c759af65c 100644 --- a/site/docs/es/plugins/keyboard.md +++ b/site/docs/es/plugins/keyboard.md @@ -196,7 +196,7 @@ const labels = [ ]; const buttonRows = labels .map((label) => [Keyboard.text(label)]); -const keyboard = Keyboard.from(buttonRows, { resize_keyboard: true }); +const keyboard = Keyboard.from(buttonRows).resized(); ``` ### Envío de un Teclado Personalizado diff --git a/site/docs/id/plugins/keyboard.md b/site/docs/id/plugins/keyboard.md index 25dee490c..7e76e8ee5 100644 --- a/site/docs/id/plugins/keyboard.md +++ b/site/docs/id/plugins/keyboard.md @@ -194,7 +194,7 @@ const labels = [ ]; const buttonRows = labels .map((label) => [Keyboard.text(label)]); -const keyboard = Keyboard.from(buttonRows, { resize_keyboard: true }); +const keyboard = Keyboard.from(buttonRows).resized(); ``` ### Mengirim Keyboard Custom diff --git a/site/docs/uk/plugins/keyboard.md b/site/docs/uk/plugins/keyboard.md index 25d3d055f..c90ae4be4 100644 --- a/site/docs/uk/plugins/keyboard.md +++ b/site/docs/uk/plugins/keyboard.md @@ -191,7 +191,7 @@ const labels = [ ]; const buttonRows = labels .map((label) => [Keyboard.text(label)]); -const keyboard = Keyboard.from(buttonRows, { resize_keyboard: true }); +const keyboard = Keyboard.from(buttonRows).resized(); ``` ### Надсилання власної клавіатури diff --git a/site/docs/zh/plugins/keyboard.md b/site/docs/zh/plugins/keyboard.md index 905f91603..c340c60b9 100644 --- a/site/docs/zh/plugins/keyboard.md +++ b/site/docs/zh/plugins/keyboard.md @@ -191,7 +191,7 @@ const labels = [ ]; const buttonRows = labels .map((label) => [Keyboard.text(label)]); -const keyboard = Keyboard.from(buttonRows, { resize_keyboard: true }); +const keyboard = Keyboard.from(buttonRows).resized(); ``` ### 发送一个自定义 Keyboard