@@ -39,6 +39,9 @@ class ForumTopic(Object):
3939
4040 icon_custom_emoji_id (``str``, *optional*):
4141 Unique identifier of the custom emoji shown as the topic icon
42+
43+ is_name_implicit (``bool``, *optional*):
44+ True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot.
4245
4346 creation_date (:py:obj:`~datetime.datetime`, *optional*):
4447 Point in time (Unix timestamp) when the topic was created
@@ -92,6 +95,7 @@ def __init__(
9295 name : str ,
9396 icon_color : int ,
9497 icon_custom_emoji_id : str = None ,
98+ is_name_implicit : bool = None ,
9599 creation_date : datetime = None ,
96100 creator : "types.Chat" = None ,
97101 outgoing : bool = None ,
@@ -114,6 +118,7 @@ def __init__(
114118 self .name = name
115119 self .icon_color = icon_color
116120 self .icon_custom_emoji_id = icon_custom_emoji_id
121+ self .is_name_implicit = is_name_implicit
117122 self .creation_date = creation_date
118123 self .creator = creator
119124 self .outgoing = outgoing
@@ -135,7 +140,7 @@ def __init__(
135140 @staticmethod
136141 def _parse (
137142 client : "pyrogram.Client" ,
138- forum_topic : "raw.types .ForumTopic" ,
143+ forum_topic : "raw.base .ForumTopic" ,
139144 messages : dict , # friendly
140145 users : dict , # raw
141146 chats : dict , # raw
@@ -171,6 +176,7 @@ def _parse(
171176 name = forum_topic .title ,
172177 icon_color = forum_topic .icon_color , # TODO
173178 icon_custom_emoji_id = getattr (forum_topic , "icon_emoji_id" , None ),
179+ is_name_implicit = getattr (forum_topic , "title_missing" , False ),
174180 creation_date = utils .timestamp_to_datetime (forum_topic .date ),
175181 creator = creator ,
176182 outgoing = getattr (forum_topic , "my" , None ),
0 commit comments