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

Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights. Returns True on success.

Parameters

args: { chat_id: number | string; message_thread_id: number; }

Return Type

true

Usage

import { type ApiMethods } from "types";