33import com .pengrad .telegrambot .model .giveaway .Giveaway ;
44import com .pengrad .telegrambot .model .giveaway .GiveawayWinners ;
55import com .pengrad .telegrambot .model .message .origin .MessageOrigin ;
6+ import com .pengrad .telegrambot .model .paidmedia .PaidMediaInfo ;
67
78import java .io .Serializable ;
89import java .util .Arrays ;
@@ -18,6 +19,7 @@ public class ExternalReplyInfo implements Serializable {
1819 private LinkPreviewOptions link_preview_options ;
1920 private Animation animation ;
2021 private Audio audio ;
22+ private PaidMediaInfo paid_media ;
2123 private Document document ;
2224 private PhotoSize [] photo ;
2325 private Sticker sticker ;
@@ -60,6 +62,9 @@ public Audio audio() {
6062 return audio ;
6163 }
6264
65+ public PaidMediaInfo paidMedia () {
66+ return paid_media ;
67+ }
6368 public Document document () {
6469 return document ;
6570 }
@@ -133,12 +138,12 @@ public boolean equals(Object o) {
133138 if (this == o ) return true ;
134139 if (o == null || getClass () != o .getClass ()) return false ;
135140 ExternalReplyInfo that = (ExternalReplyInfo ) o ;
136- return Objects .equals (origin , that .origin ) && Objects .equals (chat , that .chat ) && Objects .equals (message_id , that .message_id ) && Objects .equals (link_preview_options , that .link_preview_options ) && Objects .equals (animation , that .animation ) && Objects .equals (audio , that .audio ) && Objects .equals (document , that .document ) && Arrays .equals (photo , that .photo ) && Objects .equals (sticker , that .sticker ) && Objects .equals (story , that .story ) && Objects .equals (video , that .video ) && Objects .equals (video_note , that .video_note ) && Objects .equals (voice , that .voice ) && Objects .equals (has_media_spoiler , that .has_media_spoiler ) && Objects .equals (contact , that .contact ) && Objects .equals (dice , that .dice ) && Objects .equals (game , that .game ) && Objects .equals (giveaway , that .giveaway ) && Objects .equals (giveaway_winners , that .giveaway_winners ) && Objects .equals (invoice , that .invoice ) && Objects .equals (location , that .location ) && Objects .equals (poll , that .poll ) && Objects .equals (venue , that .venue );
141+ return Objects .equals (origin , that .origin ) && Objects .equals (chat , that .chat ) && Objects .equals (message_id , that .message_id ) && Objects .equals (link_preview_options , that .link_preview_options ) && Objects .equals (animation , that .animation ) && Objects .equals (audio , that .audio ) && Objects .equals (paid_media , that .paid_media ) && Objects .equals (document , that .document ) && Arrays .equals (photo , that .photo ) && Objects .equals (sticker , that .sticker ) && Objects .equals (story , that .story ) && Objects .equals (video , that .video ) && Objects .equals (video_note , that .video_note ) && Objects .equals (voice , that .voice ) && Objects .equals (has_media_spoiler , that .has_media_spoiler ) && Objects .equals (contact , that .contact ) && Objects .equals (dice , that .dice ) && Objects .equals (game , that .game ) && Objects .equals (giveaway , that .giveaway ) && Objects .equals (giveaway_winners , that .giveaway_winners ) && Objects .equals (invoice , that .invoice ) && Objects .equals (location , that .location ) && Objects .equals (poll , that .poll ) && Objects .equals (venue , that .venue );
137142 }
138143
139144 @ Override
140145 public int hashCode () {
141- int result = Objects .hash (origin , chat , message_id , link_preview_options , animation , audio , document , sticker , story , video , video_note , voice , has_media_spoiler , contact , dice , game , giveaway , giveaway_winners , invoice , location , poll , venue );
146+ int result = Objects .hash (origin , chat , message_id , link_preview_options , animation , audio , paid_media , document , sticker , story , video , video_note , voice , has_media_spoiler , contact , dice , game , giveaway , giveaway_winners , invoice , location , poll , venue );
142147 result = 31 * result + Arrays .hashCode (photo );
143148 return result ;
144149 }
@@ -152,6 +157,7 @@ public String toString() {
152157 ", link_preview_options=" + link_preview_options +
153158 ", animation=" + animation +
154159 ", audio=" + audio +
160+ ", paid_media=" + paid_media +
155161 ", document=" + document +
156162 ", photo=" + Arrays .toString (photo ) +
157163 ", sticker=" + sticker +
0 commit comments