Max Chat Administrator icon

Max Chat Administrator

List and manage MAX chat administrators

Add or Update

AI-generated

Summary

Adds a user or bot as a chat administrator, or replaces an existing administrator’s complete permission set and optional label. Requires the chat ID; the Add or Update operation uses the user ID, permissions, and alias fields when setting administrator rights.

Inputs

  • Chat ID (required) — Signed int64 ID of the group chat or channel.
  • User ID (required) — Signed int64 ID of the user or bot whose administrator rights are being set.
  • Permissions (required) — Complete permission set to replace the administrator’s current rights. Options: Add Administrators, Add or Remove Members, Change Chat Information, Delete, Edit, Edit Link, Pin Message, Read All Messages, and Write.
  • Alias — Optional administrator label.

Output shape

A single item containing the Max API response.

The permissions replace the current administrator rights; they are not added incrementally.

Links

Discussion