Pyrofork: Add is_slowmode_enabled in Chat

This commit is contained in:
Yasir Aris M 2024-01-22 07:13:50 +07:00 committed by GitHub
parent ea7a1e0f76
commit 98ee1af828
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,6 +196,7 @@ class Chat(Object):
is_join_request: bool = None,
is_join_to_send: bool = None,
is_antispam: bool = None,
is_slowmode_enabled: bool = None,
title: str = None,
username: str = None,
first_name: str = None,
@ -239,6 +240,7 @@ class Chat(Object):
self.is_join_request = is_join_request
self.is_join_to_send = is_join_to_send
self.is_antispam = is_antispam
self.is_slowmode_enabled = is_slowmode_enabled
self.title = title
self.username = username
self.first_name = first_name
@ -347,6 +349,7 @@ class Chat(Object):
is_forum=getattr(channel, "forum", None),
is_join_request=getattr(channel, "join_request", None),
is_join_to_send=getattr(channel, "join_to_send", None),
is_slowmode_enabled=getattr(channel, "slowmode_enabled", None)
title=channel.title,
username=user_name,
usernames=usernames,