Fix replymarkup not working on text messages
This commit is contained in:
parent
651f25be88
commit
cc5628615b
1 changed files with 1 additions and 1 deletions
|
@ -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)}
|
||||||
|
|
Loading…
Reference in a new issue