From db9fef481fd87b94f2f05ce0d48ec58548350d8d Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sat, 30 Dec 2023 17:58:05 +0700 Subject: [PATCH] Pyrofork: Add is_join_request field to Chat Signed-off-by: wulan17 --- pyrogram/types/user_and_chats/chat.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyrogram/types/user_and_chats/chat.py b/pyrogram/types/user_and_chats/chat.py index 24424799..823230d7 100644 --- a/pyrogram/types/user_and_chats/chat.py +++ b/pyrogram/types/user_and_chats/chat.py @@ -62,6 +62,9 @@ class Chat(Object): is_participants_hidden (``bool``, *optional*): True, if the chat members are hidden. + is_join_request (``bool``, *optional*): + True, if the admin need to approve member(s) join request. + title (``str``, *optional*): Title, for supergroups, channels and basic group chats. @@ -165,6 +168,7 @@ class Chat(Object): is_support: bool = None, is_forum: bool = None, is_participants_hidden: bool = None, + is_join_request: bool = None, title: str = None, username: str = None, first_name: str = None, @@ -201,6 +205,7 @@ class Chat(Object): self.is_support = is_support self.is_forum = is_forum self.is_participants_hidden = is_participants_hidden + self.is_join_request = is_join_request self.title = title self.username = username self.first_name = first_name @@ -300,6 +305,7 @@ class Chat(Object): is_scam=getattr(channel, "scam", None), is_fake=getattr(channel, "fake", None), is_forum=getattr(channel, "forum", None), + is_join_request=getattr(channel, "join_request", None), title=channel.title, username=user_name, usernames=usernames,