1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

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

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)
)