This method allows you to set the status of "User X types a message ..." in the conversation. You can send a message being typed, it makes you see what’s being typed.
POST https://api.dashly.app/v1/conversations/{id}/settyping
Conversation ID should be used as {id}
.
This method follows the general rules. Arguments are transmitted as GET or POST parameters.
Argument | Description |
---|---|
auth_token |
Required. Authorization token (requires scope: conversations-write ) |
body |
Body of the message |
from_user |
Set true if sent from visitor. Requires scope as-user . |
from_admin |
Specify the administrator ID<!-- if the administrator (and not the bot) designates it. You can set default_admin - default administrator |
bot_name |
Specify the name of the bot from which the replica is sent. The default name is Bot .--> |
Set “User is typing”:
curl -X POST \
--data-urlencode "body=My Message" \
--data-urlencode "from_user=true" \
--data-urlencode "auth_token=XXX" \
https://api.dashly.app/v1/conversations/1789152/settyping
Set “Administrator is typing” (administrator’s id = 8164):
curl -X POST \
--data-urlencode "body=My Message" \
--data-urlencode "from_admin=8164" \
--data-urlencode "auth_token=XXX" \
https://api.dashly.app/v1/conversations/1789152/settyping
{
"data": {
},
"meta": {
"status": 200
}
}