Set Group Announce
curl --request POST \
--url https://api.example.com/api/v1/groups/{group_jid}/announce \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"announce": true
}
'import requests
url = "https://api.example.com/api/v1/groups/{group_jid}/announce"
payload = {
"session_name": "<string>",
"announce": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({session_name: '<string>', announce: true})
};
fetch('https://api.example.com/api/v1/groups/{group_jid}/announce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"details": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}groups
Set Group Announce
Set whether a WhatsApp group is in announce mode (only admins can send).
POST
/
api
/
v1
/
groups
/
{group_jid}
/
announce
Set Group Announce
curl --request POST \
--url https://api.example.com/api/v1/groups/{group_jid}/announce \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"announce": true
}
'import requests
url = "https://api.example.com/api/v1/groups/{group_jid}/announce"
payload = {
"session_name": "<string>",
"announce": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({session_name: '<string>', announce: true})
};
fetch('https://api.example.com/api/v1/groups/{group_jid}/announce', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"details": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Path Parameters
Body
application/json