Fix replymarkup not working on text messages

This commit is contained in:
Hamcha 2019-08-23 11:24:49 +02:00
parent 651f25be88
commit cc5628615b
Signed by: hamcha
GPG key ID: 44AD3571EB09A39E

View file

@ -89,7 +89,7 @@ func (t Telegram) SendTextMessage(data ClientTextMessageData) {
} }
if data.ReplyMarkup != nil { if data.ReplyMarkup != nil {
replyjson, err := json.Marshal(data.ReplyMarkup) replyjson, err := json.Marshal(data.ReplyMarkup)
if !checkerr("SendTextMessage/json.Marshal", err) { if checkerr("SendTextMessage/json.Marshal", err) {
return return
} }
postdata["reply_markup"] = []string{string(replyjson)} postdata["reply_markup"] = []string{string(replyjson)}