@@ -264,6 +264,12 @@ type Chat struct {
264264 //
265265 // optional
266266 Bio string `json:"bio,omitempty"`
267+ // HasPrivateForwards is true if privacy settings of the other party in the
268+ // private chat allows to use tg://user?id=<user_id> links only in chats
269+ // with the user. Returned only in getChat.
270+ //
271+ // optional
272+ HasPrivateForwards bool `json:"has_private_forwards,omitempty"`
267273 // Description for groups, supergroups and channel chats
268274 //
269275 // optional
@@ -289,6 +295,16 @@ type Chat struct {
289295 //
290296 // optional
291297 SlowModeDelay int `json:"slow_mode_delay,omitempty"`
298+ // MessageAutoDeleteTime is the time after which all messages sent to the
299+ // chat will be automatically deleted; in seconds. Returned only in getChat.
300+ //
301+ // optional
302+ MessageAutoDeleteTime int `json:"message_auto_delete_time,omitempty"`
303+ // HasProtectedContent is true if messages from the chat can't be forwarded
304+ // to other chats. Returned only in getChat.
305+ //
306+ // optional
307+ HasProtectedContent bool `json:"has_protected_content,omitempty"`
292308 // StickerSetName is for supergroups, name of group sticker set.Returned
293309 // only in getChat.
294310 //
@@ -384,6 +400,11 @@ type Message struct {
384400 //
385401 // optional
386402 ForwardDate int `json:"forward_date,omitempty"`
403+ // IsAutomaticForward is true if the message is a channel post that was
404+ // automatically forwarded to the connected discussion group.
405+ //
406+ // optional
407+ IsAutomaticForward bool `json:"is_automatic_forward,omitempty"`
387408 // ReplyToMessage for replies, the original message.
388409 // Note that the Message object in this field will not contain further ReplyToMessage fields
389410 // even if it itself is a reply;
@@ -398,6 +419,10 @@ type Message struct {
398419 //
399420 // optional
400421 EditDate int `json:"edit_date,omitempty"`
422+ // HasProtectedContent is true if the message can't be forwarded.
423+ //
424+ // optional
425+ HasProtectedContent bool `json:"has_protected_content,omitempty"`
401426 // MediaGroupID is the unique identifier of a media message group this message belongs to;
402427 //
403428 // optional
0 commit comments