Skip to main content

Subscriber Data Model

The subscriber data model represent a user who has subscribed to your bot.
The subscriber data model is used to represent the user's profile information, such as
their name and avatar.

Subscriber Object

The subscriber object is a JSON object that contains the following fields:

Subscriber
{
"id": "jc9HsWTZ2Yf2NkRZ8KcNug==",
"name": "John McClane",
"avatar": "http://avatar.example.com",
"country": "UK",
"language": "en",
"api_version": 1
}
FieldTypeDescription
idstringThe unique ID of the user.
namestringThe user's name.
avatarstringThe URL of the user's avatar
countrystringThe user's country.
languagestringThe user's language.
api_versionintegerThe supported bots API version on the user's device