Skip to main content

intro

Introduction

In the Viber bots API, data models are used to define the structure and format of the data
exchanged between the Viber server and your bot. These models provide a standardized
way of representing various types of information, such as messages, user profiles, and
payment information. By following the data models defined in this section, you can ensure that your
bot communicates with the Viber server in a consistent and predictable manner. This
section provides detailed descriptions of the available data models, along with examples
of how to use them in your bot code.

The Platform Data Models

The platform uses the following data models for communication with your bot:

  • Message - The message data model is used to represent all types of messages that can be sent to a user.
  • Subscriber - The subscriber data model is used to represent a user who has subscribed to your bot.
  • Payment Status - The payment status data model is used to represent the status of a payment transaction.