1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

StopPoll#replyMarkup

This commit is contained in:
InsanusMokrassar 2019-05-10 19:17:47 +08:00
parent a5ca9c0ce7
commit 495a063f61
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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<Poll>, ReplyMarkup {
override fun method(): String = "stopPoll"
override fun resultSerializer(): KSerializer<Poll> = Poll.serializer()