method ApiMethods.createForumTopic
ApiMethods.createForumTopic(args: { chat_id: number | string; name: string; icon_color?:
7322096
| 16766590
| 13338331
| 9367192
| 16749490
| 16478047
; icon_custom_emoji_id?: string; }
): ForumTopic

Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns information about the created topic as a ForumTopic object.

Parameters

args: { chat_id: number | string; name: string; icon_color?:
7322096
| 16766590
| 13338331
| 9367192
| 16749490
| 16478047
; icon_custom_emoji_id?: string; }

Return Type

Usage

import { type ApiMethods } from "types";