diff --git a/options.go b/options.go index 60086681..d80a79e2 100644 --- a/options.go +++ b/options.go @@ -34,6 +34,9 @@ const ( // RemoveKeyboard = ReplyMarkup.RemoveKeyboard RemoveKeyboard + + // HasSpoiler = SendOptions.HasSpoiler + HasSpoiler ) // Placeholder is used to set input field placeholder as a send option. @@ -142,6 +145,8 @@ func (b *Bot) extractOptions(how []interface{}) *SendOptions { opts.ReplyMarkup.RemoveKeyboard = true case Protected: opts.Protected = true + case HasSpoiler: + opts.HasSpoiler = true default: panic("telebot: unsupported flag-option") }