This commit is contained in:
Rubenlagus 2016-08-07 14:04:00 +02:00
parent b566ad9621
commit 78bbe0b2c6

View File

@ -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));