Interface

IAppserviceToDeviceEvent

IAppserviceToDeviceEvent

The envelope of a to-device event delivered in an application service transaction. `Appservice` emits this as its `"to-device"` event after event preprocessing. Unlike the MatrixClient `"to-device"` event, this envelope includes the recipient user ID because application service transactions can contain messages for multiple users. The SDK checks that `content` is an object but does not validate event-type-specific fields.

View Source appservice/Appservice.ts, line 1092

Members

TContent

# content

Unvalidated content; the SDK does not validate event-type-specific fields.

View Source appservice/Appservice.ts, line 1113

string

# sender

The Matrix user ID that sent the event.

View Source appservice/Appservice.ts, line 1105

string

# to_device_id Optional

The target device ID, when provided by the transaction.

View Source appservice/Appservice.ts, line 1117

string

# to_user_id

The Matrix user ID that should receive the event.

View Source appservice/Appservice.ts, line 1109

string

# type

The Matrix event type.

View Source appservice/Appservice.ts, line 1101