diff --git a/library/src/main/java/com/pengrad/telegrambot/model/request/InputTextMessageContent.java b/library/src/main/java/com/pengrad/telegrambot/model/request/InputTextMessageContent.java index 0a6edd43..25457671 100644 --- a/library/src/main/java/com/pengrad/telegrambot/model/request/InputTextMessageContent.java +++ b/library/src/main/java/com/pengrad/telegrambot/model/request/InputTextMessageContent.java @@ -41,6 +41,7 @@ public InputTextMessageContent linkPreviewOptions(LinkPreviewOptions linkPreview /* @deprecated Use linkPreviewOptions instead */ + @Deprecated public InputTextMessageContent disableWebPagePreview(Boolean disableWebPagePreview) { this.disable_web_page_preview = disableWebPagePreview; return this; diff --git a/library/src/main/java/com/pengrad/telegrambot/model/request/KeyboardButton.java b/library/src/main/java/com/pengrad/telegrambot/model/request/KeyboardButton.java index e51d1fa4..96f85b7a 100644 --- a/library/src/main/java/com/pengrad/telegrambot/model/request/KeyboardButton.java +++ b/library/src/main/java/com/pengrad/telegrambot/model/request/KeyboardButton.java @@ -40,7 +40,7 @@ public KeyboardButton requestPoll(KeyboardButtonPollType poll) { } /** - * @deprecated Use reqyestUsers instead + * @deprecated Use requestUsers instead */ @Deprecated public KeyboardButton requestUser(KeyboardButtonRequestUser user) { diff --git a/library/src/main/java/com/pengrad/telegrambot/request/EditMessageText.java b/library/src/main/java/com/pengrad/telegrambot/request/EditMessageText.java index fe3535d7..8f4216ba 100644 --- a/library/src/main/java/com/pengrad/telegrambot/request/EditMessageText.java +++ b/library/src/main/java/com/pengrad/telegrambot/request/EditMessageText.java @@ -38,6 +38,7 @@ public EditMessageText linkPreviewOptions(LinkPreviewOptions linkPreviewOptions) /* @deprecated Use linkPreviewOptions instead */ + @Deprecated public EditMessageText disableWebPagePreview(boolean disableWebPagePreview) { return add("disable_web_page_preview", disableWebPagePreview); } diff --git a/library/src/main/java/com/pengrad/telegrambot/request/SendMessage.java b/library/src/main/java/com/pengrad/telegrambot/request/SendMessage.java index 02272972..d5e6d03d 100644 --- a/library/src/main/java/com/pengrad/telegrambot/request/SendMessage.java +++ b/library/src/main/java/com/pengrad/telegrambot/request/SendMessage.java @@ -30,6 +30,7 @@ public SendMessage linkPreviewOptions(LinkPreviewOptions linkPreviewOptions) { /* @deprecated Use linkPreviewOptions instead */ + @Deprecated public SendMessage disableWebPagePreview(boolean disableWebPagePreview) { return add("disable_web_page_preview", disableWebPagePreview); }