Skip to content

Commit f399a24

Browse files
authored
Merge pull request #508 from go-telegram-bot-api/bot-api-5.6
Updates for Bot API 5.6
2 parents ef6e421 + 50273c9 commit f399a24

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

configs.go

+2
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ func (CloseConfig) params() (Params, error) {
266266
type BaseChat struct {
267267
ChatID int64 // required
268268
ChannelUsername string
269+
ProtectContent bool
269270
ReplyToMessageID int
270271
ReplyMarkup interface{}
271272
DisableNotification bool
@@ -279,6 +280,7 @@ func (chat *BaseChat) params() (Params, error) {
279280
params.AddNonZero("reply_to_message_id", chat.ReplyToMessageID)
280281
params.AddBool("disable_notification", chat.DisableNotification)
281282
params.AddBool("allow_sending_without_reply", chat.AllowSendingWithoutReply)
283+
params.AddBool("protect_content", chat.ProtectContent)
282284

283285
err := params.AddInterface("reply_markup", chat.ReplyMarkup)
284286

types.go

+1
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ type MessageEntity struct {
712712
// “italic” (italic text),
713713
// “underline” (underlined text),
714714
// “strikethrough” (strikethrough text),
715+
// "spoiler" (spoiler message),
715716
// “code” (monowidth string),
716717
// “pre” (monowidth block),
717718
// “text_link” (for clickable text URLs),

0 commit comments

Comments
 (0)