options: add protect

pull/485/head
Nikita 2 years ago
parent c277d8daf0
commit 496146d307

@ -25,6 +25,9 @@ const (
// AllowWithoutReply = SendOptions.AllowWithoutReply
AllowWithoutReply
// Protected = SendOptions.Protected
Protected
// ForceReply = ReplyMarkup.ForceReply
ForceReply

@ -160,6 +160,8 @@ func extractOptions(how []interface{}) *SendOptions {
opts.ReplyMarkup = &ReplyMarkup{}
}
opts.ReplyMarkup.RemoveKeyboard = true
case Protected:
opts.Protected = true
default:
panic("telebot: unsupported flag-option")
}

Loading…
Cancel
Save