Skip to content

Commit 0523eb8

Browse files
authored
Merge pull request #262 from mircoianese/api_5.6
BOT Api v5.6
2 parents 3c3d60a + 9f4bb61 commit 0523eb8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

library/src/main/java/com/pengrad/telegrambot/model/MessageEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class MessageEntity implements Serializable {
1212

1313
public enum Type {
1414
mention, hashtag, cashtag, bot_command, url, email, phone_number, bold, italic, code, pre, text_link,
15-
text_mention, underline, strikethrough
15+
text_mention, underline, strikethrough, spoiler
1616
}
1717

1818
private Type type;

library/src/main/java/com/pengrad/telegrambot/request/AbstractSendRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@ public T allowSendingWithoutReply(boolean allowSendingWithoutReply) {
2929
public T replyMarkup(Keyboard replyMarkup) {
3030
return add("reply_markup", replyMarkup);
3131
}
32+
33+
public T protectContent(boolean protectContent) {
34+
return add("protect_content", protectContent);
35+
}
3236
}

0 commit comments

Comments
 (0)