mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-25 00:04:30 +00:00
Rename is_participants_hidden to is_members_hidden
This commit is contained in:
parent
44e29da658
commit
87e0c3af02
@ -42,7 +42,7 @@ class Chat(Object):
|
|||||||
is_verified (``bool``, *optional*):
|
is_verified (``bool``, *optional*):
|
||||||
True, if this chat has been verified by Telegram. Supergroups, channels and bots only.
|
True, if this chat has been verified by Telegram. Supergroups, channels and bots only.
|
||||||
|
|
||||||
is_participants_hidden (``bool``, *optional*):
|
is_members_hidden (``bool``, *optional*):
|
||||||
True, if the chat members are hidden.
|
True, if the chat members are hidden.
|
||||||
|
|
||||||
is_restricted (``bool``, *optional*):
|
is_restricted (``bool``, *optional*):
|
||||||
@ -172,7 +172,7 @@ class Chat(Object):
|
|||||||
type: "enums.ChatType",
|
type: "enums.ChatType",
|
||||||
is_forum: bool = None,
|
is_forum: bool = None,
|
||||||
is_verified: bool = None,
|
is_verified: bool = None,
|
||||||
is_participants_hidden: bool = None,
|
is_members_hidden: bool = None,
|
||||||
is_restricted: bool = None,
|
is_restricted: bool = None,
|
||||||
is_creator: bool = None,
|
is_creator: bool = None,
|
||||||
is_admin: bool = None,
|
is_admin: bool = None,
|
||||||
@ -213,7 +213,7 @@ class Chat(Object):
|
|||||||
self.type = type
|
self.type = type
|
||||||
self.is_forum = is_forum
|
self.is_forum = is_forum
|
||||||
self.is_verified = is_verified
|
self.is_verified = is_verified
|
||||||
self.is_participants_hidden = is_participants_hidden
|
self.is_members_hidden = is_members_hidden
|
||||||
self.is_restricted = is_restricted
|
self.is_restricted = is_restricted
|
||||||
self.is_creator = is_creator
|
self.is_creator = is_creator
|
||||||
self.is_admin = is_admin
|
self.is_admin = is_admin
|
||||||
@ -391,7 +391,7 @@ class Chat(Object):
|
|||||||
# TODO: Add StickerSet type
|
# TODO: Add StickerSet type
|
||||||
parsed_chat.can_set_sticker_set = full_chat.can_set_stickers
|
parsed_chat.can_set_sticker_set = full_chat.can_set_stickers
|
||||||
parsed_chat.sticker_set_name = getattr(full_chat.stickerset, "short_name", None)
|
parsed_chat.sticker_set_name = getattr(full_chat.stickerset, "short_name", None)
|
||||||
parsed_chat.is_participants_hidden = full_chat.participants_hidden
|
parsed_chat.is_members_hidden = full_chat.participants_hidden
|
||||||
|
|
||||||
linked_chat_raw = chats.get(full_chat.linked_chat_id, None)
|
linked_chat_raw = chats.get(full_chat.linked_chat_id, None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user