Function: toReplyActivity()
toReplyActivity(
inbound,cards,options?):object
Build an outbound activity carrying cards, addressed back to the sender of
inbound.
Exported because a client rendering an optimistic local reply, and a test asserting the envelope, both need the same construction the turn uses.
Parameters
Section titled “Parameters”inbound
Section titled “inbound”attachments?
Section titled “attachments?”object[] = ...
conversation?
Section titled “conversation?”{ id: string; } = ...
conversation.id
Section titled “conversation.id”string = ...
{ id: string; name?: string; } = ...
from.id
Section titled “from.id”string = ...
from.name?
Section titled “from.name?”string = ...
string = ...
recipient?
Section titled “recipient?”{ id: string; name?: string; } = ...
recipient.id
Section titled “recipient.id”string = ...
recipient.name?
Section titled “recipient.name?”string = ...
string = ...
timestamp?
Section titled “timestamp?”string = ...
"message" | "conversationUpdate" | "typing" = ...
object[]
options?
Section titled “options?”{ id: string; name?: string; }
bot.id
Section titled “bot.id”string = ...
bot.name?
Section titled “bot.name?”string = ...
string
Returns
Section titled “Returns”object
attachments?
Section titled “attachments?”
optionalattachments?:object[]
conversation?
Section titled “conversation?”
optionalconversation?:object
conversation.id
Section titled “conversation.id”id:
string
optionalfrom?:object
from.id
Section titled “from.id”id:
string
from.name?
Section titled “from.name?”
optionalname?:string
optionalid?:string
recipient?
Section titled “recipient?”
optionalrecipient?:object
recipient.id
Section titled “recipient.id”id:
string
recipient.name?
Section titled “recipient.name?”
optionalname?:string
optionaltext?:string
timestamp?
Section titled “timestamp?”
optionaltimestamp?:string
type:
"message"|"conversationUpdate"|"typing"