@@ -59,67 +59,141 @@ class Chat extends TelegramTypes
5959 public $ is_forum = false ;
6060
6161 /**
62- * Optional. Chat photo. Returned only in {@see getChat}
62+ * Optional. Chat photo.
63+ * Returned only in {@see getChat}.
6364 * @var ChatPhoto
6465 */
6566 public $ photo ;
6667
6768 /**
6869 * Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels.
69- * Returned only in {@see getChat}
70+ * Returned only in {@see getChat}.
7071 * @var array<string>
7172 */
7273 public $ active_usernames = [];
7374
7475 /**
75- * Optional. Bio of the other party in a private chat. Returned only in {@see getChat}
76+ * Optional. Custom emoji identifier of emoji status of the other party in a private chat.
77+ * Returned only in {@see getChat}.
78+ * @var string
79+ */
80+ public $ emoji_status_custom_emoji_id ;
81+
82+ /**
83+ * Optional. Bio of the other party in a private chat.
84+ * Returned only in {@see getChat}.
7685 * @var string
7786 */
7887 public $ bio ;
7988
8089 /**
81- * Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
90+ * Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id>
91+ * links only in chats with the user.
92+ * Returned only in {@see getChat}.
93+ * @var true
94+ */
95+ public $ has_private_forwards ;
96+
97+ /**
98+ * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the
99+ * private chat.
100+ * Returned only in {@see getChat}.
101+ * @var true
102+ */
103+ public $ has_restricted_voice_and_video_messages ;
104+
105+ /**
106+ * Optional. True, if users need to join the supergroup before they can send messages.
107+ * Returned only in {@see getChat}.
108+ * @var true
109+ */
110+ public $ join_to_send_messages ;
111+
112+ /**
113+ * Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators.
114+ * Returned only in {@see getChat}.
115+ * @var true
116+ */
117+ public $ join_by_request ;
118+
119+ /**
120+ * Optional. Description, for groups, supergroups and channel chats.
121+ * Returned only in {@see getChat}.
82122 * @var string
83123 */
84124 public $ description = '' ;
85125
86126 /**
87- * Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat
127+ * Optional. Chat invite link, for supergroups and channel chats.
128+ * Returned only in {@see getChat}.
88129 * @var string
89130 */
90131 public $ invite_link = '' ;
91132
92133 /**
93- * Optional. Pinned message, for supergroups. Returned only in getChat
134+ * Optional. Pinned message, for supergroups.
135+ * Returned only in {@see getChat}.
94136 * @var Message
95137 */
96138 public $ pinned_message ;
97139
98140 /**
99- * Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat
100- * @see https://core.telegram.org/bots/api#getchat
141+ * Optional. Default chat member permissions, for groups and supergroups.
142+ * Returned only in { @see getChat}.
101143 *
102144 * @var ChatPermissions
103145 */
104146 public $ permissions ;
105147
106148 /**
107- * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged
108- * user. Returned only in getChat
109- * @see https://core.telegram.org/bots/api#getchat
149+ * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user.
150+ * Returned only in {@see getChat}.
110151 *
111152 * @var int
112153 */
113154 public $ slow_mode_delay ;
114155
115156 /**
116- * Optional. For supergroups, name of Group sticker set. Returned only in getChat
157+ * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds.
158+ * Returned only in {@see getChat}.
159+ *
160+ * @var int
161+ */
162+ public $ message_auto_delete_time ;
163+
164+ /**
165+ * Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to
166+ * chat administrators.
167+ * Returned only in {@see getChat}.
168+ *
169+ * @var true
170+ */
171+ public $ has_aggressive_anti_spam_enabled ;
172+
173+ /**
174+ * Optional. True, if non-administrators can only get the list of bots and administrators in the chat.
175+ * Returned only in {@see getChat}.
176+ * @var true
177+ */
178+ public $ has_hidden_members ;
179+
180+ /**
181+ * Optional. True, if messages from the chat can't be forwarded to other chats.
182+ * Returned only in {@see getChat}.
183+ * @var true
184+ */
185+ public $ has_protected_content ;
186+
187+ /**
188+ * Optional. For supergroups, name of Group sticker set.
189+ * Returned only in {@see getChat}.
117190 * @var string
118191 */
119192 public $ sticker_set_name = '' ;
120193
121194 /**
122- * Optional. True, if the bot can change group the sticker set. Returned only in getChat
195+ * Optional. True, if the bot can change group the sticker set.
196+ * Returned only in {@see getChat}.
123197 * @var bool
124198 */
125199 public $ can_set_sticker_set = false ;
@@ -128,17 +202,30 @@ class Chat extends TelegramTypes
128202 * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice
129203 * versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming
130204 * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64
131- * bit integer or double-precision float type are safe for storing this identifier. Returned only in {@see getChat}.
205+ * bit integer or double-precision float type are safe for storing this identifier.
206+ * Returned only in {@see getChat}.
132207 * @var int
133208 */
134209 public $ linked_chat_id = 0 ;
135210
136211 /**
137- * Optional. For supergroups, the location to which the supergroup is connected. Returned only in {@see getChat}.
212+ * Optional. For supergroups, the location to which the supergroup is connected.
213+ * Returned only in {@see getChat}.
138214 * @var ChatLocation
139215 */
140216 public $ location ;
141217
218+
219+ /**
220+ * @deprecated Bot API 4.4 (July 29, 2019)
221+ * The field all_members_are_administrators has been removed from the documentation for the Chat object.
222+ * The field is still returned in the object for backward compatibility, but new bots should use the permissions
223+ * field instead.
224+ *
225+ * @var bool
226+ */
227+ public $ all_members_are_administrators ;
228+
142229 public function mapSubObjects (string $ key , array $ data ): TelegramTypes
143230 {
144231 switch ($ key ) {
0 commit comments