File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ func (CloseConfig) params() (Params, error) {
266
266
type BaseChat struct {
267
267
ChatID int64 // required
268
268
ChannelUsername string
269
+ ProtectContent bool
269
270
ReplyToMessageID int
270
271
ReplyMarkup interface {}
271
272
DisableNotification bool
@@ -279,6 +280,7 @@ func (chat *BaseChat) params() (Params, error) {
279
280
params .AddNonZero ("reply_to_message_id" , chat .ReplyToMessageID )
280
281
params .AddBool ("disable_notification" , chat .DisableNotification )
281
282
params .AddBool ("allow_sending_without_reply" , chat .AllowSendingWithoutReply )
283
+ params .AddBool ("protect_content" , chat .ProtectContent )
282
284
283
285
err := params .AddInterface ("reply_markup" , chat .ReplyMarkup )
284
286
Original file line number Diff line number Diff line change @@ -712,6 +712,7 @@ type MessageEntity struct {
712
712
// “italic” (italic text),
713
713
// “underline” (underlined text),
714
714
// “strikethrough” (strikethrough text),
715
+ // "spoiler" (spoiler message),
715
716
// “code” (monowidth string),
716
717
// “pre” (monowidth block),
717
718
// “text_link” (for clickable text URLs),
You can’t perform that action at this time.
0 commit comments