Actions36
- Message Actions
- Chat Actions
- User Actions
- Media Actions
- Channel Actions
Channel → Edit Admin
AI-generatedSummary
Edit the administrative rights of a user in a Telegram channel by specifying the channel and the user to promote or update as an admin.
Inputs
- chatId (required) — The chat ID or username of the channel where the admin rights are to be edited.
- userId (required) — The user ID or username of the member whose admin rights you want to edit.
Output shape
a single JSON object representing the result of the EditAdmin API call, including the updated admin rights information.
The output reflects the result of invoking Telegram's EditAdmin method, returning the new admin rights details for the specified user in the channel. No pagination or additional options are applicable for this operation.
Examples
Example 1: Promote a user to admin in a channel
Specify the channel in 'chatId' and the user to be promoted in 'userId'. The operation automatically assigns full admin rights with permissions to change info, post messages, edit messages, delete messages, ban users, invite users, pin messages, add admins, manage calls, and other admin capabilities.