diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedAudio.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedAudio.java index a53ca68c..08a504b3 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedAudio.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedAudio.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedDocument.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedDocument.java index 21634824..e19cd3ee 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedDocument.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedDocument.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedGif.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedGif.java index c2ad9280..04790156 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedGif.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedGif.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedMpeg4Gif.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedMpeg4Gif.java index 00112f0b..df7dbbfc 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedMpeg4Gif.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedMpeg4Gif.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedPhoto.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedPhoto.java index a5a8306c..489d3a09 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedPhoto.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedPhoto.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedSticker.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedSticker.java index 76556a71..c52bf668 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedSticker.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedSticker.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVideo.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVideo.java index d187fc5a..565f9943 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVideo.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVideo.java @@ -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); diff --git a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVoice.java b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVoice.java index 810656b6..b770252c 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVoice.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/inlinequery/result/chached/InlineQueryResultCachedVoice.java @@ -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);