@@ -30,7 +30,7 @@ public class Message extends MaybeInaccessibleMessage implements Serializable {
30
30
private Chat sender_chat ;
31
31
private Integer sender_boost_count ;
32
32
private User sender_business_bot ;
33
- private BusinessConnection business_connection ;
33
+ private String business_connection_id ;
34
34
private MessageOrigin forward_origin ;
35
35
private Boolean is_topic_message ;
36
36
private Boolean is_automatic_forward ;
@@ -129,8 +129,8 @@ public User senderBusinessBot() {
129
129
return sender_business_bot ;
130
130
}
131
131
132
- public BusinessConnection businessConnection () {
133
- return business_connection ;
132
+ public String businessConnectionId () {
133
+ return business_connection_id ;
134
134
}
135
135
136
136
public MessageOrigin forwardOrigin () {
@@ -223,9 +223,11 @@ public Boolean isAutomaticForward() {
223
223
public Message replyToMessage () {
224
224
return reply_to_message ;
225
225
}
226
+
226
227
public ExternalReplyInfo externalReply () {
227
228
return external_reply ;
228
229
}
230
+
229
231
public TextQuote quote () {
230
232
return quote ;
231
233
}
@@ -546,13 +548,13 @@ public boolean equals(Object o) {
546
548
if (o == null || getClass () != o .getClass ()) return false ;
547
549
Message message = (Message ) o ;
548
550
return Objects .equals (message_id , message .message_id ) &&
549
- Objects .equals (message_thread_id , message .message_thread_id ) &&
551
+ Objects .equals (message_thread_id , message .message_thread_id ) &&
550
552
Objects .equals (from , message .from ) &&
551
553
Objects .equals (sender_chat , message .sender_chat ) &&
552
554
Objects .equals (sender_boost_count , message .sender_boost_count ) &&
553
555
Objects .equals (date , message .date ) &&
554
556
Objects .equals (sender_business_bot , message .sender_business_bot ) &&
555
- Objects .equals (business_connection , message .business_connection ) &&
557
+ Objects .equals (business_connection_id , message .business_connection_id ) &&
556
558
Objects .equals (chat , message .chat ) &&
557
559
Objects .equals (forward_origin , message .forward_origin ) &&
558
560
Objects .equals (is_topic_message , message .is_topic_message ) &&
@@ -648,7 +650,7 @@ public String toString() {
648
650
", sender_boost_count=" + sender_boost_count +
649
651
", date=" + date +
650
652
", sender_business_bot=" + sender_business_bot +
651
- ", business_connection =" + business_connection +
653
+ ", business_connection_id =" + business_connection_id +
652
654
", chat=" + chat +
653
655
", forward_origin=" + forward_origin +
654
656
", is_topic_message=" + is_topic_message +
@@ -659,9 +661,9 @@ public String toString() {
659
661
", reply_to_story=" + reply_to_story +
660
662
", via_bot=" + via_bot +
661
663
", edit_date=" + edit_date +
662
- ", has_protected_content=" + has_protected_content +
664
+ ", has_protected_content=" + has_protected_content +
663
665
", is_from_offline=" + is_from_offline +
664
- ", has_media_spoiler=" + has_media_spoiler +
666
+ ", has_media_spoiler=" + has_media_spoiler +
665
667
", media_group_id='" + media_group_id + '\'' +
666
668
", author_signature='" + author_signature + '\'' +
667
669
", text='" + text + '\'' +
0 commit comments