options: add AllowWithoutReply

pull/486/head
Demian 2 years ago
parent 6a0ece4b8f
commit 1cfc31f074

@ -22,6 +22,9 @@ const (
// Silent = SendOptions.DisableNotification
Silent
// AllowWithoutReply = SendOptions.AllowWithoutReply
AllowWithoutReply
// ForceReply = ReplyMarkup.ForceReply
ForceReply

@ -143,6 +143,8 @@ func extractOptions(how []interface{}) *SendOptions {
opts.DisableWebPagePreview = true
case Silent:
opts.DisableNotification = true
case AllowWithoutReply:
opts.AllowWithoutReply = true
case ForceReply:
if opts.ReplyMarkup == nil {
opts.ReplyMarkup = &ReplyMarkup{}

Loading…
Cancel
Save