@@ -69,6 +69,15 @@ class ChatEventFilter(Object):
6969 video_chats (``bool``, *optional*):
7070 True, if video chats events should be returned.
7171 Defaults to False.
72+
73+ forum_changes (``bool``, *optional*):
74+ True, if forum-related actions need to be returned.
75+ Defaults to False.
76+
77+ subscription_extensions (``bool``, *optional*):
78+ True, if subscription extensions need to be returned.
79+ Defaults to False.
80+
7281 """
7382
7483 def __init__ (
@@ -83,7 +92,9 @@ def __init__(
8392 edited_messages : bool = False ,
8493 pinned_messages : bool = False ,
8594 leaving_members : bool = False ,
86- video_chats : bool = False
95+ video_chats : bool = False ,
96+ forum_changes : bool = False ,
97+ subscription_extensions : bool = False ,
8798 ):
8899 super ().__init__ ()
89100
@@ -98,6 +109,8 @@ def __init__(
98109 self .pinned_messages = pinned_messages
99110 self .leaving_members = leaving_members
100111 self .video_chats = video_chats
112+ self .forum_changes = forum_changes
113+ self .subscription_extensions = subscription_extensions
101114
102115 def write (self ) -> "raw.base.ChannelAdminLogEventsFilter" :
103116 join = False
@@ -116,6 +129,8 @@ def write(self) -> "raw.base.ChannelAdminLogEventsFilter":
116129 delete = False
117130 group_call = False
118131 invites = False
132+ forum_changes = False
133+ subscription_extensions = False
119134
120135 if self .new_restrictions :
121136 ban = True
@@ -154,6 +169,12 @@ def write(self) -> "raw.base.ChannelAdminLogEventsFilter":
154169
155170 if self .video_chats :
156171 group_call = True
172+
173+ if self .forum_changes :
174+ forum_changes = True
175+
176+ if self .subscription_extensions :
177+ subscription_extensions = True
157178
158179 return raw .types .ChannelAdminLogEventsFilter (
159180 join = join ,
@@ -171,5 +192,8 @@ def write(self) -> "raw.base.ChannelAdminLogEventsFilter":
171192 edit = edit ,
172193 delete = delete ,
173194 group_call = group_call ,
174- invites = invites
195+ invites = invites ,
196+ # send
197+ forums = forum_changes .
198+ sub_extend = subscription_extensions
175199 )
0 commit comments