Update __init__.py

This commit is contained in:
_run 2022-11-13 13:34:54 +04:00 committed by GitHub
parent ae1845f285
commit 8b735aa114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4630,7 +4630,7 @@ class TeleBot:
:return: On success, information about the created topic is returned as a ForumTopic object.
:rtype: :class:`telebot.types.ForumTopic`
"""
return types.ForumTopic(
return types.ForumTopic.de_json(
apihelper.create_forum_topic(self.token, chat_id, name, icon_color, icon_custom_emoji_id)
)