diff --git a/library/src/main/java/com/pengrad/telegrambot/request/PinChatMessage.java b/library/src/main/java/com/pengrad/telegrambot/request/PinChatMessage.java index 1abe826d..a691bf40 100644 --- a/library/src/main/java/com/pengrad/telegrambot/request/PinChatMessage.java +++ b/library/src/main/java/com/pengrad/telegrambot/request/PinChatMessage.java @@ -16,5 +16,8 @@ public PinChatMessage(Object chatId, int messageId) { public PinChatMessage disableNotification(boolean disableNotification) { return add("disable_notification", disableNotification); } + public PinChatMessage businessConnectionId(String businessConnectionId) { + return add("business_connection_id", businessConnectionId); + } } diff --git a/library/src/main/java/com/pengrad/telegrambot/request/UnpinChatMessage.java b/library/src/main/java/com/pengrad/telegrambot/request/UnpinChatMessage.java index 84b3cf7e..4eedfa74 100644 --- a/library/src/main/java/com/pengrad/telegrambot/request/UnpinChatMessage.java +++ b/library/src/main/java/com/pengrad/telegrambot/request/UnpinChatMessage.java @@ -16,4 +16,8 @@ public UnpinChatMessage(Object chatId) { public UnpinChatMessage messageId(Integer messageId) { return add("message_id", messageId); } + + public UnpinChatMessage businessConnectionId(String businessConnectionId) { + return add("business_connection_id", businessConnectionId); + } }