For picture - JPEG and PNG files are supported. Determine whether the user action is presented in the conversation Each button must contain at least one of the following optional parameters: text, BgMedia, image, BgColor. The following parameters can be defined for each button in the “buttons” array separately. JSON Object, which describes Carousel content to be saved via favorites bot, if saving is available minimized - display input field minimized by default. regular- display regular size input field. Represents size of block for grouping buttons during layout This is applied to all blocks in the Carousel content It means blocks can become not square and it can be used to create Carousel content with correct custom aspect ratio. Scales the height of the default square block (which is defined on client side) to the given value in percents. Allow use custom aspect ratio for Carousel content blocks. The final height will be not less than height of system keyboard
Viber icon png transparent free#
How much percent of free screen space in chat should be taken by keyboard. Maximal height will be native keyboard height When true - the keyboard will always be displayed with the same height as the native keyboard.When false - short keyboards will be displayed with the minimal possible height. See buttons parameters below for buttons parameters details
Array containing all keyboard buttons by order. If you use api level 3 parameters you will have to set the min_api_version parameter on right api level as well. Please note: The api level 3 is supported on devices running Viber version 7.6 and above. The example below shows a keyboard sent with a single message.
From the background color, number of buttons and so on. The keyboard JSON object defines different visual and logic attributes. To attach a keyboard to a message simply add the keyboard’s parameters to the message JSON. Keyboards can be attached to any message type and be sent and displayed together. The client will always display the last keyboard that was sent to it. The keyboards are fully customizable and can be created and designed specifically for the bot’s needs. Once received, the keyboard will appear to the user instead of the device’s native keyboard. The keyboard can be attached to any message type or sent on its own. The Chat Bot API allows sending a custom keyboard with each message, to supply the user with a set of predefined replies or actions.