@@ -49,6 +49,7 @@ public class Message extends MaybeInaccessibleMessage implements Serializable {
4949 private Integer edit_date ;
5050 private Boolean has_protected_content ;
5151 private Boolean is_from_offline ;
52+ private Boolean is_paid_post ;
5253 private Boolean has_media_spoiler ;
5354 private String media_group_id ;
5455 private String author_signature ;
@@ -199,6 +200,10 @@ public Boolean isFromOffline() {
199200 return is_from_offline != null && is_from_offline ;
200201 }
201202
203+ public Boolean isPaidPost () {
204+ return is_paid_post != null && is_paid_post ;
205+ }
206+
202207 public Boolean hasMediaSpoiler () {
203208 return has_media_spoiler != null && has_media_spoiler ;
204209 }
@@ -540,6 +545,7 @@ public boolean equals(Object o) {
540545 Objects .equals (edit_date , message .edit_date ) &&
541546 Objects .equals (has_protected_content , message .has_protected_content ) &&
542547 Objects .equals (is_from_offline , message .is_from_offline ) &&
548+ Objects .equals (is_paid_post , message .is_paid_post ) &&
543549 Objects .equals (has_media_spoiler , message .has_media_spoiler ) &&
544550 Objects .equals (media_group_id , message .media_group_id ) &&
545551 Objects .equals (author_signature , message .author_signature ) &&
@@ -645,6 +651,7 @@ public String toString() {
645651 ", edit_date=" + edit_date +
646652 ", has_protected_content=" + has_protected_content +
647653 ", is_from_offline=" + is_from_offline +
654+ ", is_paid_post=" + is_paid_post +
648655 ", has_media_spoiler=" + has_media_spoiler +
649656 ", media_group_id='" + media_group_id + '\'' +
650657 ", author_signature='" + author_signature + '\'' +
0 commit comments