fixed bug with caption

This commit is contained in:
MrBesen 2019-02-11 16:46:27 +01:00
parent 61527b9737
commit d52e8f22a4
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 2 additions and 2 deletions

View File

@ -139,8 +139,8 @@ public class MessageBuilder {
String text = "";
if(attachmenttype != Attachment.none) {
if(caption != null)
attachment += "&caption=" + caption;
attachment = "&" + attachmenttype.name().toLowerCase() + "=" + this.attachment;
attachment = "&caption=" + caption;
attachment += "&" + attachmenttype.name().toLowerCase() + "=" + this.attachment;
cmd = "send" + attachmenttype.name();
} else {
cmd = "sendMessage";