From ca801f2f1ccc505671ffb106d47da80a4e4705ad Mon Sep 17 00:00:00 2001 From: Demian Date: Sun, 8 Nov 2020 01:45:58 +0200 Subject: [PATCH] options: fix nil reply markup handling --- util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util.go b/util.go index 3f60b03..05f1343 100644 --- a/util.go +++ b/util.go @@ -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{}