{
"id": "507f1f77bcf86cd799439011",
"dialog_id": "507f1f77bcf86cd799439013",
"action_type": "message_created",
"target_type": "message",
"timestamp": "2025-12-27T12:00:00.000Z",
"updated_at": "string",
"event_version": 3,
"message": {
"content": "Здравствуйте! Как оформить заказ?"
},
"sender": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "lead",
"external_id": "123456789",
"profile": {
"first_name": "Иван",
"last_name": "Петров",
"username": "ivan_petrov",
"avatar_url": "https://example.com/avatar.jpg",
"platform_type": "vk"
}
},
"attachments": [],
"buttons": [
{
"buttons": [
{
"text": "Перейти на сайт",
"type": "url",
"url": "https://example.com"
},
{
"text": "О нас",
"type": "url",
"url": "https://example.com/about"
}
]
}
],
"status": {
"deletion": {
"is_deleted": true,
"deleted_at": "2025-12-27T12:06:00.000Z"
},
"sending": {
"status": "queued",
"error_user_message": "string",
"error_internal": "string"
}
},
"message_interactions": {
"reactions": {
"count": 3,
"items": [
"👍",
"❤️"
],
"users": [
"user-1",
"tg_chat:-1001"
],
"last_at": "2025-12-27T12:06:00.000Z"
},
"editing": {
"is_edited": true,
"edited_at": "2025-12-27T12:05:00.000Z",
"edited_by": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "lead",
"external_id": "123456789",
"profile": {
"first_name": "Иван",
"last_name": "Петров",
"username": "ivan_petrov",
"avatar_url": "https://example.com/avatar.jpg",
"platform_type": "vk"
}
}
},
"replies": {
"is_reply": true,
"reply_to_id": "507f1f77bcf86cd799439011",
"reply_count": 2,
"thread_id": "thread-123"
},
"forwarding": {
"is_forwarded": true,
"forward_count": 1,
"from_chat": "chat-1",
"from_user": "user-1",
"last_at": "2025-12-27T12:06:00.000Z"
},
"views": {
"count": 120,
"unique_viewers": 77,
"last_at": "2025-12-27T12:06:00.000Z"
},
"pinning": {
"is_pinned": true,
"pinned_at": "2025-12-27T12:06:00.000Z",
"pinned_by": "user-1"
},
"mentions": {
"has_mentions": true,
"items": [
"@max",
"<@1234567890>"
],
"user_ids": [
"1234567890"
]
},
"platform_edit": {
"state": "pending",
"required": true,
"error": "Message can not be edited",
"reason": "channel_not_supported_for_platform_action"
},
"platform_delete": {
"state": "pending",
"required": true,
"error": "Message can not be edited",
"reason": "channel_not_supported_for_platform_action"
}
},
"error": {
"message": "Сообщение не доставлено"
},
"hierarchy": {
"is_rolled_back": true,
"rolled_back_by_event_id": "507f1f77bcf86cd799439012",
"rollback_payload": {
"previous_state": "old_value",
"original_content": "Original message text"
}
},
"button_click": {
"callback_data": "confirm_order",
"button_text": "Узнать цену"
}
}