Skip to content

Commit

Permalink
options: add AllowWithoutReply
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Feb 4, 2022
1 parent 6a0ece4 commit 1cfc31f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const (
// Silent = SendOptions.DisableNotification
Silent

// AllowWithoutReply = SendOptions.AllowWithoutReply
AllowWithoutReply

// ForceReply = ReplyMarkup.ForceReply
ForceReply

Expand Down
2 changes: 2 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 1cfc31f

Please sign in to comment.