peyk.platforms.bale.methods.create_forum_topic

async peyk.platforms.bale.methods.create_forum_topic(self, chat_id: int | str, name: str) → ForumTopic[source]

Create a topic in a private chat with a user (bot topic chats).

Parameters:
  • chat_id – Identifier of the target private chat.

  • name – Topic name (1-64 characters).

Returns:

The created ForumTopic. Use its message_thread_id (or the message_thread_id of the service message) to send into the topic.