P
P
prostobot2021-05-18 07:39:17
Keyboard
prostobot, 2021-05-18 07:39:17

How to adjust the height of the keyboard to the height of the button in the viber bot?

Hello! How in Viber Bot to adjust (reduce) the height of the keyboard to the height of the only button that is 1 Rows? Is there some php line for this? By default, even one button is pressed to the top, and free space "walks" from the bottom and thus the useful part of the window with correspondence is blocked ... Thank you!

$message['keyboard'] = [
    "Type" => "keyboard",
    "DefaultHeight" => true,
    "Buttons" => [
    [
      "Columns" => 6,
      "Rows" => 1,
      ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prostobot, 2021-05-18
@prostobot

I added the code to the question and thus found a solution)

$message['keyboard'] = [
    "Type" => "keyboard",
    "DefaultHeight" => false,

false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question