options: fix nil reply markup handling

pull/341/head
Demian 4 years ago
parent 6d548640f2
commit ca801f2f1c

@ -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{}

Loading…
Cancel
Save