Set chat members
set_chat_membersChange a group's people, as its settings do — only its administrators may: 'add' puts colleagues in, 'admins' and 'notAdmins' make members administrators or not, 'remove' takes people out. Your own username in 'remove' is leaving the group, which anybody may. 'title' renames it. Applied in that order — add, admins, notAdmins, title, remove — and stopped at the first refusal, which is named; what came before it stays done. A direct chat has no members to change; a project's chat is whoever may open the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Colleagues to add, by username or email. | |
| title | No | A new title for the group. | |
| admins | No | Members to make administrators, by username. | |
| chatId | Yes | The group's id. | |
| remove | No | Members to take out, by username. Your own is leaving. | |
| notAdmins | No | Administrators to make plain members, by username. |