@@ -34,6 +34,7 @@ public class Message extends MaybeInaccessibleMessage implements Serializable {
3434 private User via_bot ;
3535 private Integer edit_date ;
3636 private Boolean has_protected_content ;
37+ private Boolean is_from_offline ;
3738 private Boolean has_media_spoiler ;
3839 private String media_group_id ;
3940 private String author_signature ;
@@ -227,11 +228,15 @@ public Integer editDate() {
227228 }
228229
229230 public Boolean hasProtectedContent () {
230- return has_protected_content ;
231+ return has_protected_content != null && has_protected_content ;
232+ }
233+
234+ public Boolean isFromOffline () {
235+ return is_from_offline != null && is_from_offline ;
231236 }
232237
233238 public Boolean hasMediaSpoiler () {
234- return has_media_spoiler ;
239+ return has_media_spoiler != null && has_media_spoiler ;
235240 }
236241
237242
@@ -507,6 +512,7 @@ public boolean equals(Object o) {
507512 Objects .equals (via_bot , message .via_bot ) &&
508513 Objects .equals (edit_date , message .edit_date ) &&
509514 Objects .equals (has_protected_content , message .has_protected_content ) &&
515+ Objects .equals (is_from_offline , message .is_from_offline ) &&
510516 Objects .equals (has_media_spoiler , message .has_media_spoiler ) &&
511517 Objects .equals (media_group_id , message .media_group_id ) &&
512518 Objects .equals (author_signature , message .author_signature ) &&
@@ -593,6 +599,7 @@ public String toString() {
593599 ", via_bot=" + via_bot +
594600 ", edit_date=" + edit_date +
595601 ", has_protected_content=" + has_protected_content +
602+ ", is_from_offline=" + is_from_offline +
596603 ", has_media_spoiler=" + has_media_spoiler +
597604 ", media_group_id='" + media_group_id + '\'' +
598605 ", author_signature='" + author_signature + '\'' +
0 commit comments