From 87d4bffc0af22ca19518095ce7c3be07d77f215a Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Mon, 22 Jan 2024 07:27:45 +0700 Subject: [PATCH] Pyrofork: Add is_slowmode_enabled description --- pyrogram/types/user_and_chats/chat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/types/user_and_chats/chat.py b/pyrogram/types/user_and_chats/chat.py index ca634192..e5c538a7 100644 --- a/pyrogram/types/user_and_chats/chat.py +++ b/pyrogram/types/user_and_chats/chat.py @@ -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,