File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed
library/src/main/java/com/pengrad/telegrambot/model Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,50 @@ public class LinkPreviewOptions implements Serializable {
1414 private Boolean prefer_large_media ;
1515 private Boolean show_above_text ;
1616
17-
1817 public Boolean isDisabled () {
1918 return is_disabled ;
2019 }
2120
21+ public LinkPreviewOptions isDisabled (boolean isDisabled ) {
22+ this .is_disabled = isDisabled ;
23+ return this ;
24+ }
25+
2226 public String url () {
2327 return url ;
2428 }
2529
30+ public LinkPreviewOptions url (String url ) {
31+ this .url = url ;
32+ return this ;
33+ }
34+
2635 public Boolean preferSmallMedia () {
2736 return prefer_small_media ;
2837 }
2938
39+ public LinkPreviewOptions preferSmallMedia (Boolean preferSmallMedia ) {
40+ this .prefer_small_media = preferSmallMedia ;
41+ return this ;
42+ }
43+
3044 public Boolean preferLargeMedia () {
3145 return prefer_large_media ;
3246 }
3347
48+ public LinkPreviewOptions preferLargeMedia (Boolean preferLargeMedia ) {
49+ this .prefer_large_media = preferLargeMedia ;
50+ return this ;
51+ }
52+
3453 public Boolean showAboveText () {
3554 return show_above_text ;
3655 }
3756
57+ public LinkPreviewOptions showAboveText (Boolean showAboveText ) {
58+ this .show_above_text = showAboveText ;
59+ return this ;
60+ }
3861
3962 @ Override
4063 public boolean equals (Object o ) {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public Chat senderChat() {
9898 return sender_chat ;
9999 }
100100
101- private MessageOrigin forwardOrigin () {
101+ public MessageOrigin forwardOrigin () {
102102 return forward_origin ;
103103 }
104104
You can’t perform that action at this time.
0 commit comments