IAddress interface

Address routing information for an event. Addresses are bidirectional meaning they can be used to address both incoming and outgoing events. They're also connector specific meaning that connectors are free to add their own fields to the address. To send a proactive message to a user bots should save the address from a received message. Depending on the channel addresses can change, so bots should periodically update the address stored for a given user.

Properties

bot

Bot that either received or is sending the message.

channelId

Unique identifier for channel.

conversation

Represents the current conversation and tracks where replies should be routed to. Can be deleted to start a new conversation with a user on channels that support new conversations.

user

User that sent or should receive the message.

Property Details

bot

Bot that either received or is sending the message.

bot: IIdentity

Property Value

channelId

Unique identifier for channel.

channelId: string

Property Value

string

conversation

Represents the current conversation and tracks where replies should be routed to. Can be deleted to start a new conversation with a user on channels that support new conversations.

conversation?: IIdentity

Property Value

user

User that sent or should receive the message.

user: IIdentity

Property Value