Mention Created
When a message is sent from a channel user you will receive mention.created event
Request example
js{
    "event": "mention.created",
    "id": "1b81478b-e9f3-4f58-a08b-e0df00225232",
    "account": 1,
    "app": 1,
    "createdAt": 1652973463,
    "deliveryAttempts": 1,
    "firstDeliveryAttempt": 1652973463,
    "data": {
        "id": 2,
        "createdAt": 1652973462,
        "isRead": false,
        "mentioned": {
            "id": 2
        },
        "mentionedBy": {
            "id": 1,
            "fullName": null,
            "optimisedAvatarUrl": null
        },
        "message": {
            "__typename": "NoteMessage",
            "createdAtCursor": "MTY1Mjk3MzQ2Mg",
            "body": "[@Ahmed Awad](#composer-mention-2)",
            "attachments": []
        },
        "conversation": {
            "id": 1,
            "messageWindowExpiresAt": null,
            "messageWindowExpiryConditions": [],
            "channelType": "TELEGRAM",
            "participants": [
                {
                    "user": {
                        "id": 1,
                        "__typename": "ChannelUser",
                        "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,
                        "avatarUrl": null,
                        "optimisedAvatarUrl": null
                    }
                }
            ]
        }
    }
}
Request data breakdown
| Key | value | type | Description | 
|---|---|---|---|
| event | mention.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 | Mention Object | Mention | data of the object |