From a7c1bbb03b826750e9935398aff8ae78737a3ace Mon Sep 17 00:00:00 2001 From: tarik02 Date: Sun, 25 Aug 2024 14:12:08 +0300 Subject: [PATCH] api: add HasSpoiler option --- options.go | 5 +++++ 1 file changed, 5 insertions(+) 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") }