Skip to content

Commit c7bc349

Browse files
committed
Added new field switch_inline_query_current_chat in InlineKeyboardButton
1 parent 9c2c3cc commit c7bc349

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/pengrad/telegrambot/model/request/InlineKeyboardButton.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class InlineKeyboardButton {
1010
private String url;
1111
private String callback_data;
1212
private String switch_inline_query;
13+
private String switch_inline_query_current_chat;
1314

1415
public InlineKeyboardButton(String text) {
1516
this.text = text;
@@ -29,4 +30,9 @@ public InlineKeyboardButton switchInlineQuery(String switchInlineQuery) {
2930
switch_inline_query = switchInlineQuery;
3031
return this;
3132
}
33+
34+
public InlineKeyboardButton switchInlineQueryCurrentChat(String switchInlineQueryCurrentChat) {
35+
switch_inline_query_current_chat = switchInlineQueryCurrentChat;
36+
return this;
37+
}
3238
}

0 commit comments

Comments
 (0)