@@ -18,6 +18,7 @@ public class InlineKeyboardButton implements Serializable {
1818 private String callback_data ;
1919 private String switch_inline_query ;
2020 private String switch_inline_query_current_chat ;
21+ private SwitchInlineQueryChosenChat switch_inline_query_chosen_chat ;
2122 private CallbackGame callback_game ;
2223 private Boolean pay ;
2324 private WebAppInfo web_app ;
@@ -56,6 +57,11 @@ public InlineKeyboardButton switchInlineQueryCurrentChat(String switchInlineQuer
5657 return this ;
5758 }
5859
60+ public InlineKeyboardButton switchInlineQueryChosenChat (SwitchInlineQueryChosenChat switchInlineQueryChosenChat ) {
61+ switch_inline_query_chosen_chat = switchInlineQueryChosenChat ;
62+ return this ;
63+ }
64+
5965 public InlineKeyboardButton callbackGame (String callbackGame ) {
6066 callback_game = new CallbackGame ();
6167 return this ;
@@ -91,6 +97,10 @@ public String switchInlineQueryCurrentChat() {
9197 return switch_inline_query_current_chat ;
9298 }
9399
100+ public SwitchInlineQueryChosenChat switchInlineQueryChosenChat () {
101+ return switch_inline_query_chosen_chat ;
102+ }
103+
94104 public CallbackGame callbackGame () {
95105 return callback_game ;
96106 }
@@ -114,14 +124,15 @@ public boolean equals(Object o) {
114124 Objects .equals (callback_data , that .callback_data ) &&
115125 Objects .equals (switch_inline_query , that .switch_inline_query ) &&
116126 Objects .equals (switch_inline_query_current_chat , that .switch_inline_query_current_chat ) &&
127+ Objects .equals (switch_inline_query_chosen_chat , that .switch_inline_query_chosen_chat ) &&
117128 Objects .equals (callback_game , that .callback_game ) &&
118129 Objects .equals (pay , that .pay ) &&
119130 Objects .equals (web_app , that .web_app );
120131 }
121132
122133 @ Override
123134 public int hashCode () {
124- return Objects .hash (text , url , login_url , callback_data , switch_inline_query , switch_inline_query_current_chat , callback_game , pay , web_app );
135+ return Objects .hash (text , url , login_url , callback_data , switch_inline_query , switch_inline_query_current_chat , switch_inline_query_chosen_chat , callback_game , pay , web_app );
125136 }
126137
127138 @ Override
@@ -133,6 +144,7 @@ public String toString() {
133144 ", callback_data='" + callback_data + '\'' +
134145 ", switch_inline_query='" + switch_inline_query + '\'' +
135146 ", switch_inline_query_current_chat='" + switch_inline_query_current_chat + '\'' +
147+ ", switch_inline_query_chosen_chat='" + switch_inline_query_chosen_chat + '\'' +
136148 ", callback_game=" + callback_game +
137149 ", pay=" + pay +
138150 ", web_app=" + web_app +
0 commit comments