Pyrofork: Add is_slowmode_enabled description

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

View file

@ -69,6 +69,9 @@ class Chat(Object):
is_join_to_send (``bool``, *optional*):
True, if only chat members allowed to send message in chat.
is_slowmode_enabled (``bool``, *optional*):
True, if slowmode is enabled in chat.
is_antispam (``bool``, *optional*):
True, if Aggressive Anti-Spam is enabled in chat.
Returned only in :meth:`~pyrogram.Client.get_chat`.
@ -349,7 +352,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)
is_slowmode_enabled=getattr(channel, "slowmode_enabled", None),
title=channel.title,
username=user_name,
usernames=usernames,