Message Created
When a message is sent from a channel user you will receive message.created event
Request example
js{
    "event": "message.created",
    "id": "12309a6f-558b-4a57-92ab-5c545b07f55a",
    "account": 1,
    "app": 1,
    "createdAt": 1652973169,
    "deliveryAttempts": 1,
    "firstDeliveryAttempt": 1652973169,
    "data": {
        "conversation": {
            "id": 1,
            "channel": {
                "id": 1
            },
            "state": "OPENED",
            "assignee": null,
            "channelType": "TELEGRAM",
            "messageWindowExpired": null,
            "messageWindowExpiresAt": null,
            "createdAt": 1652783952,
            "messageWindowExpiryConditions": [],
            "participants": [
                {
                    "user": {
                        "id": 1,
                        "__typename": "ChannelUser",
                        "name": null,
                        "firstName": "Ahmed",
                        "lastName": "Abbas",
                        "identifiers": [
                            {
                                "sourceId": "1765698763",
                                "category": "TELEGRAM_ID"
                            }
                        ],
                        "displayName": "Ahmed Abbas",
                        "avatarUrl": null,
                        "optimisedAvatarUrl": null
                    }
                },
                {
                    "user": {
                        "id": 1,
                        "__typename": "AppUser",
                        "fullName": null,
                        "displayName": null,
                        "optimisedAvatarUrl": null
                    }
                }
            ]
        },
        "__typename": "TextMessage",
        "id": 7,
        "idempotencyKey": null,
        "createdAtCursor": "MTY1Mjk3MzE2Nw",
        "direction": "INBOUND",
        "createdAt": 1652973168,
        "failedAt": null,
        "deliveredAt": null,
        "sentAt": null,
        "readAt": null,
        "modifiedAt": null,
        "deletedAt": null,
        "receivedAt": null,
        "messageType": "TEXT",
        "messageSubtype": "NO_MSUBTYPE",
        "messageCategory": "USER",
        "reactions": [],
        "forwarded": false,
        "repliedToMessage": null,
        "user": {
            "id": 1,
            "__typename": "ChannelUser",
            "name": null,
            "firstName": "Ahmed",
            "displayName": "Ahmed Abbas",
            "avatarUrl": null,
            "optimisedAvatarUrl": null,
            "identifiers": [
                {
                    "sourceId": "1765698763",
                    "category": "TELEGRAM_ID"
                }
            ]
        },
        "body": "Hello",
        "quickReplies": []
    }
}
Request data breakdown
| Key | value | type | Description | 
|---|---|---|---|
| event | message.created | string | name of the event | 
| id | 30837b84-b007-46dd-943a-092513f69cd8 | string | id of the event | 
| account | 1 | Integer | id of the account | 
| app | 1 | Integer | id of the app | 
| createdAt | 1652968658 | Integer | timestamp of the creation date | 
| deliveryAttempts | 1 | Integer | Number of times we tried to deliver the event | 
| firstDeliveryAttempt | 1652968658 | Integer | timestamp of the first time we tried to deliver the event | 
| data | Message Object | Message | data of the object |