Изменить настройки исчезающих сообщений чата
POST
/waInstance{{idInstance}}/setDisappearingChat/{{apiTokenInstance}}Документация setDisappearingChat
Request
Body Params application/json
chatId
string
required
ephemeralExpiration
integer
required
Example
{
"chatId": "71234567890@c.us",
"ephemeralExpiration": 0 //Возможные варианты: 0, 86400, 604800, 7776000
}
Request samples
Responses
setDisappearingChat(200)
setDisappearingChat
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
chatId
string
required
disappearingMessagesInChat
boolean
required
ephemeralExpiration
integer
required
ExamplesetDisappearingChat
{
"chatId": "712345678910@c.us",
"disappearingMessagesInChat": false,
"ephemeralExpiration": 0
}
Last modified: 19 days ago