Skip to content

Commit

Permalink
fixed replyidmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
svasenkov committed Apr 20, 2021
1 parent 3dc859c commit cf75e86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void sendText() {
.routeParam("token", botToken())
.header("Content-Type", URL_ENCODED.contentType())
.field("chat_id", chatId())
.field("reply_to_message_id", replyToMessageId())
.field("reply_to_message_id", replyToMessageId() + "")
.field("text", formattedMarkdownMessage())
.field("parse_mode", "Markdown")
.asString()
Expand All @@ -33,7 +33,7 @@ public void sendPhoto() {
.routeParam("token", botToken())
.field("photo", new File("piechart.png"))
.field("chat_id", chatId())
.field("reply_to_message_id", replyToMessageId())
.field("reply_to_message_id", replyToMessageId() + "")
.field("parse_mode", "Markdown")
.field("caption", formattedMarkdownMessage())
.asString()
Expand Down

0 comments on commit cf75e86

Please sign in to comment.