Conversation closed
When a conversation is first closed you will receive conversation.closed
event
Request example
js{
"event": "conversation.closed",
"id": "30837b84-b007-46dd-943a-092513f69cd8",
"account": 1,
"app": 1,
"createdAt": 1652968658,
"deliveryAttempts": 1,
"firstDeliveryAttempt": 1652968658,
"data": {
"id": 1,
"snoozedUntil": null,
"messageWindowExpiresAt": null,
"messageWindowExpiryConditions": [],
"channelType": "TELEGRAM",
"state": "CLOSED",
"lastReadByAppUserAt": 1652094016,
"lastInboundMessageAt": 1652784981,
"closedAt": 1652783952,
"channel": {
"id": 1
},
"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
}
}
]
}
}
Request data breakdown
Key | value | type | Description |
---|---|---|---|
event | conversation.closed | 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 |
closed_at | 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 | Conversation Object | Conversation | data of the object |