- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
The Main Process receives the converted data from the messengers and runs the initial business logic of the bot before routing tasks to sub-processes.
Input JSON example
{
"channel": "viber",
"chat_id": "12312321",
"event": "message",
"message": {
"type": "text",
"text": "Lorem ipsum..."
}
}
Incoming data parameters to the Main Process
Parameter | Type | Required | Description |
---|---|---|---|
channel | string | + | Name of a messenger from which a user wrote |
chat_id | string | + | Unique identifier of a user |
event | string | + | Event type. Available options: start , context , message , command . |
message | object | + | Message object. |
first_name | string | - | User’s first name. |
last_name | string | - | User’s last name. |
gender | string | - | User’s gender. |
user_picture | string | - | Link to a user’s profile picture. |
country | string | - | Country where a user is currently in and detected by a messenger automatically. |
language | string | - | Language set on the user’s device. |
timezone | string | - | Time zone. |
context | string | - | Data of the context event. |
Was this article helpful?