From 8b735aa114ce256a9c7de9f6c370ebabd9f68c7c Mon Sep 17 00:00:00 2001 From: _run Date: Sun, 13 Nov 2022 13:34:54 +0400 Subject: [PATCH] Update __init__.py --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 1cca149..f34bee7 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -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) )