Skip to content

Commit

Permalink
options: fix nil reply markup handling
Browse files Browse the repository at this point in the history
  • Loading branch information
demget committed Nov 7, 2020
1 parent 6d54864 commit ca801f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func extractOptions(how []interface{}) *SendOptions {
if opts == nil {
opts = &SendOptions{}
}
opts.ReplyMarkup = opt.copy()
if opt != nil {
opts.ReplyMarkup = opt.copy()
}
case Option:
if opts == nil {
opts = &SendOptions{}
Expand Down

0 comments on commit ca801f2

Please sign in to comment.