Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions telegram/_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from telegram._chatlocation import ChatLocation
from telegram._chatpermissions import ChatPermissions
from telegram._files.chatphoto import ChatPhoto
from telegram._forumtopic import ForumTopic
from telegram._menubutton import MenuButton
from telegram._telegramobject import TelegramObject
from telegram._utils import enum
Expand Down Expand Up @@ -2628,7 +2629,7 @@ async def create_forum_topic(
connect_timeout: ODVInput[float] = DEFAULT_NONE,
pool_timeout: ODVInput[float] = DEFAULT_NONE,
api_kwargs: JSONDict = None,
) -> bool:
) -> ForumTopic:
"""Shortcut for::

await bot.create_forum_topic(chat_id=update.effective_chat.id, *args, **kwargs)
Expand All @@ -2639,7 +2640,7 @@ async def create_forum_topic(
.. versionadded:: 20.0

Returns:
:obj:`bool`: On success, :obj:`True` is returned.
:class:`telegram.ForumTopic`
"""
return await self.get_bot().create_forum_topic(
chat_id=self.id,
Expand Down