Upload Post icon

Upload Post

Upload content to social media via Upload-Post API

Actions118

Telegram → Moderate Member

AI-generated

Summary

Execute moderation actions on a Telegram chat member using a selected Telegram network profile, specifying the user ID, desired action, and optional extra parameters.

Inputs

  • Profile Name or ID (required) — Select the Telegram network profile to use for the moderation action, either from a list of created profiles or by specifying an ID via an expression.
  • Telegram User ID (required) — Provide the numeric Telegram user ID of the member to be moderated.
  • Member Action (required) — Choose the action to perform on the Telegram member: ban, demote, promote, restrict, set a custom title, or unban.
  • Confirm — Indicate true to confirm actions that require explicit confirmation (ban, promote, demote, unban). The Telegram API rejects calls without confirmation when required.
  • Extra Fields (JSON) — Supply additional JSON-formatted fields to merge into the request body, such as permissions, rights, until_date for restrictions, or custom title details.

Output shape

a single JSON object containing the Telegram API response to the moderation request

The returned data includes the success status and any relevant Telegram API response details. Confirmation is required for certain actions (ban, promote, demote, unban) or the API call will fail with a confirmation_required error.

Examples

Example 1: Ban a member

Select your Telegram profile, enter the user ID, choose 'ban' as the action, and set 'Confirm' to true.

Example 2: Restrict a member

Select the Telegram profile, specify the user ID, choose 'restrict' as the action, and optionally specify permissions and expiration in 'Extra Fields'. Confirm is false by default.

Links

Discussion