From 78bbe0b2c65d14139ebb4a5fafd2f0752aa01b55 Mon Sep 17 00:00:00 2001 From: Rubenlagus Date: Sun, 7 Aug 2016 14:04:00 +0200 Subject: [PATCH] Closes #128 --- src/main/java/org/telegram/telegrambots/bots/AbsSender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/telegram/telegrambots/bots/AbsSender.java b/src/main/java/org/telegram/telegrambots/bots/AbsSender.java index a270898c..b56131c3 100644 --- a/src/main/java/org/telegram/telegrambots/bots/AbsSender.java +++ b/src/main/java/org/telegram/telegrambots/bots/AbsSender.java @@ -550,7 +550,7 @@ public abstract class AbsSender { if (sendDocument.getCaption() != null) { nameValuePairs.add(new BasicNameValuePair(SendDocument.CAPTION_FIELD, sendDocument.getCaption())); } - if (sendDocument.getReplyToMessageId() != null) { + if (sendDocument.getDisableNotification() != null) { nameValuePairs.add(new BasicNameValuePair(SendDocument.DISABLENOTIFICATION_FIELD, sendDocument.getDisableNotification().toString())); } httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs, StandardCharsets.UTF_8));