Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Forum → Close Forum Topic

AI-generated

Summary

Closes a specific forum topic within a Telegram chat, preventing new messages from being posted.

Inputs

  • chat_id (required) — Unique identifier for the target chat.
  • message_thread_id (required) — Unique identifier for the target message thread of the forum topic.

Output shape

A single record (the updated topic object from the Telegram API response).

Returns the updated topic object including the is_closed status.

Examples

Example 1: Close a support topic in a channel

Chat ID: -1001234567890, Message Thread ID: 128

Example 2: Close a community topic after a discussion ends

Chat ID: @mycommunity, Message Thread ID: 42

Links

Discussion