mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Pyrofork: Add is_join_request field to Chat
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
b524fb6049
commit
db9fef481f
1 changed files with 6 additions and 0 deletions
|
|
@ -62,6 +62,9 @@ class Chat(Object):
|
||||||
is_participants_hidden (``bool``, *optional*):
|
is_participants_hidden (``bool``, *optional*):
|
||||||
True, if the chat members are hidden.
|
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 (``str``, *optional*):
|
||||||
Title, for supergroups, channels and basic group chats.
|
Title, for supergroups, channels and basic group chats.
|
||||||
|
|
||||||
|
|
@ -165,6 +168,7 @@ class Chat(Object):
|
||||||
is_support: bool = None,
|
is_support: bool = None,
|
||||||
is_forum: bool = None,
|
is_forum: bool = None,
|
||||||
is_participants_hidden: bool = None,
|
is_participants_hidden: bool = None,
|
||||||
|
is_join_request: bool = None,
|
||||||
title: str = None,
|
title: str = None,
|
||||||
username: str = None,
|
username: str = None,
|
||||||
first_name: str = None,
|
first_name: str = None,
|
||||||
|
|
@ -201,6 +205,7 @@ class Chat(Object):
|
||||||
self.is_support = is_support
|
self.is_support = is_support
|
||||||
self.is_forum = is_forum
|
self.is_forum = is_forum
|
||||||
self.is_participants_hidden = is_participants_hidden
|
self.is_participants_hidden = is_participants_hidden
|
||||||
|
self.is_join_request = is_join_request
|
||||||
self.title = title
|
self.title = title
|
||||||
self.username = username
|
self.username = username
|
||||||
self.first_name = first_name
|
self.first_name = first_name
|
||||||
|
|
@ -300,6 +305,7 @@ class Chat(Object):
|
||||||
is_scam=getattr(channel, "scam", None),
|
is_scam=getattr(channel, "scam", None),
|
||||||
is_fake=getattr(channel, "fake", None),
|
is_fake=getattr(channel, "fake", None),
|
||||||
is_forum=getattr(channel, "forum", None),
|
is_forum=getattr(channel, "forum", None),
|
||||||
|
is_join_request=getattr(channel, "join_request", None),
|
||||||
title=channel.title,
|
title=channel.title,
|
||||||
username=user_name,
|
username=user_name,
|
||||||
usernames=usernames,
|
usernames=usernames,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue