create_forum_topic()¶
- Client.create_forum_topic(chat_id: int | str, title: str, icon_color: int = None, icon_emoji_id: int = None, icon_custom_emoji_id: int = None, name: str = None, send_as: int | str = None) ForumTopicCreated¶
Create a new forum topic.
Usable by ✅ Users ✅ Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.title (
str) – The forum topic title.icon_color (
int, optional) – The color of forum topic icon.icon_emoji_id (
int, optional) – Unique identifier of the custom emoji shown as the topic icon
- Returns:
ForumTopicCreated– On success, a forum_topic_created object is returned.
Example
await app.create_forum_topic(chat_id=chat_id, title="Topic Title")