OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Channel → Demote Admin

AI-generated

Summary

Demotes a specified user from admin to subscriber in a WhatsApp channel.

Inputs

  • sessionId (required) — The ID of the session. Choose from the list, or specify an ID using an expression.
  • channelId (required) — The ID of the channel, in the form 1234567890@newsletter. The list is populated by the channel listing, which only whatsapp-web.js supports: on Baileys it stays empty and the ID has to be supplied from an expression. Choose from the list, or specify an ID using an expression.
  • channelUserId (required) — The admin to demote back to a subscriber. A bare phone number is accepted and qualified by the server.

Output shape

Channel membership updated; the specified user is demoted from admin to subscriber.

Demote Admin is Baileys-only; whatsapp-web.js returns 501.

Links

Discussion