Skip to main content

message.im event

A message was posted in a direct message channel

Facts

Required Scopes
Compatible APIs

Usage info

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

{
"token": "one-long-verification-token",
"team_id": "T061EG9R6",
"api_app_id": "A0PNCHHK2",
"event": {
"type": "message",
"channel": "D024BE91L",
"user": "U2147483697",
"text": "Hello hello can you hear me?",
"ts": "1355517523.000005",
"event_ts": "1355517523.000005",
"channel_type": "im"
},
"type": "event_callback",
"authed_teams": [
"T061EG9R6"
],
"event_id": "Ev0PV52K21",
"event_time": 1355517523
}

The semantics for this message event type are similar to the core message event sent through the RTM API. Messages often include many more fields than those shown above.

Differentiate direct messages from other message.* events by looking for the event's channel_type field set to "im".