Function: promptOf()
promptOf(
inbound):string|null
The text a message activity carries, or null when it carries none.
A channel sends plenty of activities with no usable text (a typing
indicator, a conversationUpdate when someone joins, or a message whose
payload is only an attachment). Those are not errors - they simply produce no
reply - so this returns null rather than throwing.
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" = ...
Returns
Section titled “Returns”string | null