@@ -39,6 +39,9 @@ class Chat(Object):
3939 is_verified (``bool``, *optional*):
4040 True, if this chat has been verified by Telegram. Supergroups, channels and bots only.
4141
42+ is_participants_hidden (``bool``, *optional*):
43+ True, if this chat members has been hidden.
44+
4245 is_restricted (``bool``, *optional*):
4346 True, if this chat has been restricted. Supergroups, channels and bots only.
4447 See *restriction_reason* for details.
@@ -150,6 +153,7 @@ def __init__(
150153 id : int ,
151154 type : "enums.ChatType" ,
152155 is_verified : Optional [bool ] = None ,
156+ is_participants_hidden : Optional [bool ] = None ,
153157 is_restricted : Optional [bool ] = None ,
154158 is_creator : Optional [bool ] = None ,
155159 is_scam : Optional [bool ] = None ,
@@ -184,6 +188,7 @@ def __init__(
184188 self .id = id
185189 self .type = type
186190 self .is_verified = is_verified
191+ self .is_participants_hidden = is_participants_hidden
187192 self .is_restricted = is_restricted
188193 self .is_creator = is_creator
189194 self .is_scam = is_scam
@@ -359,6 +364,9 @@ async def _parse_full(
359364 # TODO: Add StickerSet type
360365 parsed_chat .can_set_sticker_set = full_chat .can_set_stickers
361366 parsed_chat .sticker_set_name = getattr (full_chat .stickerset , "short_name" , None )
367+ parsed_chat .is_participants_hidden = getattr (
368+ full_chat , "participants_hidden" , False
369+ )
362370
363371 if linked_chat_raw := chats .get (full_chat .linked_chat_id ):
364372 parsed_chat .linked_chat = Chat ._parse_channel_chat (client , linked_chat_raw )
0 commit comments