Send a typing indicator
/v1/amb/conversations/{conversation_id}/typingconst result = await bird.amb.conversations.typing(
"acv_01krdgeqcxet5s7t44vh8rt9mg",
{ event: "typing_start" },
);
console.log(result);result = client.amb.conversations.typing('acv_01krdgeqcxet5s7t44vh8rt9mg', event='typing_start')
print(result)if err := client.Amb.Conversations.Typing(ctx, "acv_01krdgeqcxet5s7t44vh8rt9mg", bird.AmbConversationsTypingParams{Event: "typing_start"}); err != nil {
log.Fatal(err)
}$bird->amb->conversations->typing('acv_01krdgeqcxet5s7t44vh8rt9mg', (new Model\AMBConversationTypingRequest())->setEvent('typing_start'));bird amb conversations typing <conversation-id> --event typing_startcurl -X POST "https://us1.platform.bird.com/v1/amb/conversations/{conversation_id}/typing" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"event": "typing_start"
}'Sends a typing indicator to the customer's device on this conversation. Send typing_start before the reply it precedes; sending it again before that reply is not meaningful and may be dropped. Apple's own behavior for typing_end sent with no reply following is unproven, so treat it as best-effort. This conversation must be open: the same checks that gate a message on this conversation gate a typing indicator, other than the content checks, since a typing indicator has no content. Apple can still refuse the indicator for this customer: AMBRecipientUnreachable means none of their devices can receive it, and AMBConversationClosed can also mean Apple reports that the customer left the conversation, which then closes when the next message is sent.
Parameter
conversation_idstringConversation identifier. Starts with acv_.
Anfrage-Nutzlast
eventThe typing signal to send. typing_start tells the customer's device that an operator is composing a reply. typing_end tells it composition stopped without a message following. Apple expects at most one typing_start before the reply it precedes; sending it again before that reply is not meaningful and may be dropped. typing_end's behavior against a live conversation is unproven: the legacy platform's implementation was disabled after it caused issues, so treat it as best-effort.
Possible values: typing_start, typing_end
Verwandte Ressourcen
Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.