Skip to content

unbanChatSenderChat

Returns boolean

Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights.

Required: chat_id, sender_chat_id

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("unban_chat_sender_chat", {
chat_id: "YOUR_CHAT_ID",
sender_chat_id: 0
})

Parameters

chat_id number | string Required
Unique identifier for the target chat or username of the target channel (in the format @channelusername).

sender_chat_id number Required
Unique identifier of the target sender chat.

unbanChatMember