Set group announce mode

POST /group/announce

Enable/disable announce mode so only admins can send messages

application/json

Body

  • group_id string Required

    The group ID

  • announce boolean Required

    Whether to enable announce mode (true) or disable it (false)

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code string
    • message string
    • results string
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code string

      HTTP Status Code

    • message string

      Detail error message

    • results object

      additional data

  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • code string

      SYSTEM_CODE_ERROR

    • message string

      Detail error message

    • results object

      additional data

POST /group/announce
curl \
 --request POST 'http://localhost:3000/group/announce' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"group_id":"120363024512399999@g.us","announce":true}'
Request examples
{
  "group_id": "120363024512399999@g.us",
  "announce": true
}
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success",
  "results": "string"
}
Response examples (400)
{
  "code": 400,
  "message": "field cannot be blank",
  "results": {}
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}