Telegram MTProto icon

Telegram MTProto

Full-featured Telegram MTProto client (Pyrogram equivalent)

Chat → Unban User

AI-generated

Summary

Unban a user from a Telegram chat or channel to restore their participation rights.

Inputs

  • User ID (required) — The user ID or username of the person to unban.
  • Additional Options — Optional parameters including Parse Mode (Markdown, HTML, or None), Silent message sending (no notification), Reply To Message ID, Link Preview toggle, and pagination controls (Offset ID, Min ID, Max ID). These options can modify message behavior if relevant.

Output shape

a single object representing the Telegram API response of the unban action

Returns the raw API response after invoking the unban user operation with ChatBannedRights reset. No pagination applies to this operation.

Examples

Example 1: Unban a user by their username to allow them back into the chat.

Set Resource to 'Chat', Operation to 'Unban User', provide the chat ID in credentials (required globally), specify the User ID or username to unban, and optionally set additional message options.

Discussion