{
"_id": "01JCQ8Z5W3K7X2M4N6P8R0T2V4",
"event": "message.received",
"description": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"id": 123,
"telegram_message_id": 123,
"subscriber": {
"id": 123,
"user_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"phone": "<string>",
"email": "<string>",
"notes": "<string>",
"tags": "<string>",
"is_active": true,
"is_blocked": true,
"last_active_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"utm_tags": {},
"custom_fields": {}
},
"text": "<string>",
"outgoing": true,
"file": {
"type": "<string>",
"url": "<string>",
"title": "<string>",
"size": 123,
"duration": 123
},
"reply_to_message_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"botId": 123
}
}Сообщения
Получено сообщение
Подписчик написал боту
WEBHOOK
message.received
{
"_id": "01JCQ8Z5W3K7X2M4N6P8R0T2V4",
"event": "message.received",
"description": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {
"id": 123,
"telegram_message_id": 123,
"subscriber": {
"id": 123,
"user_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>",
"phone": "<string>",
"email": "<string>",
"notes": "<string>",
"tags": "<string>",
"is_active": true,
"is_blocked": true,
"last_active_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"utm_tags": {},
"custom_fields": {}
},
"text": "<string>",
"outgoing": true,
"file": {
"type": "<string>",
"url": "<string>",
"title": "<string>",
"size": 123,
"duration": 123
},
"reply_to_message_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"botId": 123
}
}Заголовки
Тело
application/json
Body of every webhook delivery
Ответ
2XX
Return any 2xx status within 3 seconds to confirm the delivery. Any other status, a connection error or a timeout is retried