Skip to content

Commit 092640e

Browse files
Allowed bots to create topics in private chats using the method createForumTopic.
1 parent 9d72040 commit 092640e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

telebot/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7815,8 +7815,8 @@ def create_forum_topic(self,
78157815
chat_id: int, name: str, icon_color: Optional[int]=None,
78167816
icon_custom_emoji_id: Optional[str]=None) -> types.ForumTopic:
78177817
"""
7818-
Use this method to create a topic in a forum supergroup chat. The bot must be an administrator
7819-
in the chat for this to work and must have the can_manage_topics administrator rights.
7818+
Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot
7819+
must be an administrator in the chat for this to work and must have the can_manage_topics administrator right.
78207820
Returns information about the created topic as a ForumTopic object.
78217821
78227822
Telegram documentation: https://core.telegram.org/bots/api#createforumtopic

0 commit comments

Comments
 (0)