Skip to content

Commit c238e03

Browse files
committed
Added the field user_chat_id to the class ChatJoinRequest
1 parent 4120735 commit c238e03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

library/src/main/java/com/pengrad/telegrambot/model/ChatJoinRequest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class ChatJoinRequest implements Serializable {
1212

1313
private Chat chat;
1414
private User from;
15+
private Long user_chat_id;
1516
private Integer date;
1617
private String bio;
1718
private ChatInviteLink invite_link;
@@ -24,6 +25,10 @@ public User from() {
2425
return from;
2526
}
2627

28+
public Long userChatId() {
29+
return user_chat_id;
30+
}
31+
2732
public Integer date() {
2833
return date;
2934
}
@@ -44,21 +49,23 @@ public boolean equals(Object o) {
4449
ChatJoinRequest that = (ChatJoinRequest) o;
4550
return Objects.equals(chat, that.chat) &&
4651
Objects.equals(from, that.from) &&
52+
Objects.equals(user_chat_id, that.user_chat_id) &&
4753
Objects.equals(date, that.date) &&
4854
Objects.equals(bio, that.bio) &&
4955
Objects.equals(invite_link, that.invite_link);
5056
}
5157

5258
@Override
5359
public int hashCode() {
54-
return Objects.hash(chat, from, date, bio, invite_link);
60+
return Objects.hash(chat, from, user_chat_id, date, bio, invite_link);
5561
}
5662

5763
@Override
5864
public String toString() {
5965
return "ChatJoinRequest{" +
6066
"chat=" + chat +
6167
", from=" + from +
68+
", user_chat_id=" + user_chat_id +
6269
", date=" + date +
6370
", bio=" + bio +
6471
", invite_link=" + invite_link +

0 commit comments

Comments
 (0)