Closes #85
This commit is contained in:
parent
88ef2e6bf8
commit
402b842a35
@ -87,7 +87,7 @@ public class InlineQueryResultCachedAudio implements InlineQueryResult {
|
||||
jsonObject.put(ID_FIELD, id);
|
||||
jsonObject.put(AUDIO_FILE_ID_FIELD, audioFileId);
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -128,7 +128,7 @@ public class InlineQueryResultCachedDocument implements InlineQueryResult {
|
||||
jsonObject.put(DESCRIPTION_FIELD, this.description);
|
||||
}
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -115,7 +115,7 @@ public class InlineQueryResultCachedGif implements InlineQueryResult {
|
||||
jsonObject.put(CAPTION_FIELD, this.caption);
|
||||
}
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -115,7 +115,7 @@ public class InlineQueryResultCachedMpeg4Gif implements InlineQueryResult {
|
||||
jsonObject.put(CAPTION_FIELD, this.caption);
|
||||
}
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -130,7 +130,7 @@ public class InlineQueryResultCachedPhoto implements InlineQueryResult {
|
||||
jsonObject.put(CAPTION_FIELD, this.caption);
|
||||
}
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -87,7 +87,7 @@ public class InlineQueryResultCachedSticker implements InlineQueryResult {
|
||||
jsonObject.put(ID_FIELD, this.id);
|
||||
jsonObject.put(STICKER_FILE_ID_FIELD, stickerFileId);
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -130,7 +130,7 @@ public class InlineQueryResultCachedVideo implements InlineQueryResult {
|
||||
jsonObject.put(DESCRIPTION_FIELD, this.description);
|
||||
}
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
@ -102,7 +102,7 @@ public class InlineQueryResultCachedVoice implements InlineQueryResult {
|
||||
jsonObject.put(TITLE_FIELD, this.title);
|
||||
}
|
||||
if (replyMarkup != null) {
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup);
|
||||
jsonObject.put(REPLY_MARKUP_FIELD, replyMarkup.toJson());
|
||||
}
|
||||
if (inputMessageContent != null) {
|
||||
jsonObject.put(INPUTMESSAGECONTENT_FIELD, inputMessageContent);
|
||||
|
Loading…
Reference in New Issue
Block a user