method ApiMethods.leaveChat
ApiMethods.leaveChat(args: { chat_id: number | string; }): true

Use this method for your bot to leave a group, supergroup or channel. Returns True on success.

Parameters

args: { chat_id: number | string; }

Return Type

true

Usage

import { type ApiMethods } from "types";