Skip to content

Commit

Permalink
Merge pull request #391 from mircoianese/master
Browse files Browse the repository at this point in the history
Missing @deprecated keyword on disableWebPagePreview methods
  • Loading branch information
pengrad authored Jul 21, 2024
2 parents 38f7831 + 92d2061 commit 815d772
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public KeyboardButton requestPoll(KeyboardButtonPollType poll) {
}

/**
* @deprecated Use reqyestUsers instead
* @deprecated Use requestUsers instead
*/
@Deprecated
public KeyboardButton requestUser(KeyboardButtonRequestUser user) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 815d772

Please sign in to comment.