Actions49
- Message Actions
- Thread Actions
- Reactions Actions
- Chat Actions
- User Actions
- Group Tag Actions
- Status Actions
- Custom Fields Actions
- Task Actions
- Bot Actions
- File Actions
- Form Actions
Chat → Update user role in chat
AI-generatedSummary
Update the role of a specific user within a chat by providing the chat ID, user ID, and the new role.
Inputs
- Chat ID (required) — Numeric identifier of the chat to update the user role in.
- User ID (required) — Numeric identifier of the user whose role needs to be updated.
- New Role (required) — The new role to assign to the user; options include Admin, Editor (only for channels), and Member.
Output shape
a single record containing the updated user role information or confirmation of the update
Requires valid chat and user IDs; the role must be one of the predefined roles; errors occur if IDs are invalid or role assignment fails.
