Skip to main content

file_comment message

A comment was added to a file

Facts

Required Scopes
No scopes required!
Compatible APIs

Usage info

This event is no longer served.

File comments have been phased out in favor of regular messages and threads — read our changelog entry for more information.

This example includes both the event wrapper and the event structure for the file_comment message subtype event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "message",
"subtype": "file_comment",
"ts": "1361482916.000003",
"text": "<@cal> commented on a file: ...",
"file": {},
"comment": {}
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

A file_comment message is sent when a new comment is added to a file shared into a channel, group or direct message.