---
title: "POST /unbanChatMember"
method: POST
path: "/unbanChatMember"
---

# POST /unbanChatMember

`POST /unbanChatMember`

Use this method to unban a previously kicked user in a supergroup or channel. The user will **not** return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be **removed** from the chat. If you don't want this, use the parameter *only\_if\_banned*. Returns *True* on success.

## Request body

- object
  - `chat_id` union, required — Unique identifier for the target group or username of the target supergroup or channel (in the format `@username`)
    - integer
    - string
  - `user_id` integer, required — Unique identifier of the target user
  - `only_if_banned` boolean — Do nothing if the user is not banned

## Response `200`

- object
  - `ok` boolean, required
  - `result` boolean, required

## Other responses

- `default`

---

[API](https://skmtc.net/stoplight/apis/telegram-bot-api.md) · [All operations](https://skmtc.net/stoplight/apis/telegram-bot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stoplight/telegram-bot-api/versions/be4bbb34b64a/schema)
