From 495a063f611b00d86603224968c3f7453f8fffe6 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 10 May 2019 19:17:47 +0800 Subject: [PATCH] StopPoll#replyMarkup --- CHANGELOG.md | 1 + .../github/insanusmokrassar/TelegramBotAPI/requests/StopPoll.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86b0f9e79e..a71af3dd13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ some default library * Replace `WebhookPrivateKeyConfig` * Added `FlowsUpdatesFilter` * `UpdatesFilter` now have additional callback for polls +* `StopPoll#replyMarkup` now is optional ## 0.13.0 Telegram Polls diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/StopPoll.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/StopPoll.kt index 8f5a4118f0..f5327fa719 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/StopPoll.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/requests/StopPoll.kt @@ -15,7 +15,7 @@ data class StopPoll( @SerialName(messageIdField) override val messageId: MessageIdentifier, @SerialName(replyMarkupField) - override val replyMarkup: InlineKeyboardMarkup? + override val replyMarkup: InlineKeyboardMarkup? = null ) : MessageAction, SimpleRequest, ReplyMarkup { override fun method(): String = "stopPoll" override fun resultSerializer(): KSerializer = Poll.serializer()