@@ -34,6 +34,7 @@ public enum Type {
34
34
private ChatPhoto photo ;
35
35
private String [] active_usernames ;
36
36
private String emoji_status_custom_emoji_id ;
37
+ private Integer emoji_status_expiration_date ;
37
38
private String bio ;
38
39
private Boolean has_private_forwards ;
39
40
private Boolean has_restricted_voice_and_video_messages ;
@@ -85,14 +86,34 @@ public ChatPhoto photo() {
85
86
return photo ;
86
87
}
87
88
89
+ /**
90
+ * @deprecated Use activeUsernames() instead
91
+ */
92
+ @ Deprecated
88
93
public String [] getActiveUsernames () {
89
94
return active_usernames ;
90
95
}
91
96
97
+ public String [] activeUsernames () {
98
+ return active_usernames ;
99
+ }
100
+
101
+ /**
102
+ * @deprecated Use emojiStatusCustomEmojiId() instead
103
+ */
104
+ @ Deprecated
92
105
public String getEmojiStatusCustomEmojiId () {
93
106
return emoji_status_custom_emoji_id ;
94
107
}
95
108
109
+ public String emojiStatusCustomEmojiId () {
110
+ return emoji_status_custom_emoji_id ;
111
+ }
112
+
113
+ public Integer emojiStatusExpirationDate () {
114
+ return emoji_status_expiration_date ;
115
+ }
116
+
96
117
public String bio () {
97
118
return bio ;
98
119
}
@@ -180,6 +201,7 @@ public boolean equals(Object o) {
180
201
Objects .equals (photo , chat .photo ) &&
181
202
Arrays .equals (active_usernames , chat .active_usernames ) &&
182
203
Objects .equals (emoji_status_custom_emoji_id , chat .emoji_status_custom_emoji_id ) &&
204
+ Objects .equals (emoji_status_expiration_date , chat .emoji_status_expiration_date ) &&
183
205
Objects .equals (bio , chat .bio ) &&
184
206
Objects .equals (has_private_forwards , chat .has_private_forwards ) &&
185
207
Objects .equals (has_restricted_voice_and_video_messages , chat .has_restricted_voice_and_video_messages ) &&
@@ -218,6 +240,7 @@ public String toString() {
218
240
", photo=" + photo +
219
241
", active_usernames=" + Arrays .toString (active_usernames ) +
220
242
", emoji_status_custom_emoji_id='" + emoji_status_custom_emoji_id + '\'' +
243
+ ", emoji_status_expiration_date='" + emoji_status_expiration_date + '\'' +
221
244
", bio='" + bio + '\'' +
222
245
", has_private_forwards=" + has_private_forwards +
223
246
", has_restricted_voice_and_video_messages=" + has_restricted_voice_and_video_messages +
0 commit comments