1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +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` * Replace `WebhookPrivateKeyConfig`
* Added `FlowsUpdatesFilter` * Added `FlowsUpdatesFilter`
* `UpdatesFilter` now have additional callback for polls * `UpdatesFilter` now have additional callback for polls
* `StopPoll#replyMarkup` now is optional
## 0.13.0 Telegram Polls ## 0.13.0 Telegram Polls

View File

@ -15,7 +15,7 @@ data class StopPoll(
@SerialName(messageIdField) @SerialName(messageIdField)
override val messageId: MessageIdentifier, override val messageId: MessageIdentifier,
@SerialName(replyMarkupField) @SerialName(replyMarkupField)
override val replyMarkup: InlineKeyboardMarkup? override val replyMarkup: InlineKeyboardMarkup? = null
) : MessageAction, SimpleRequest<Poll>, ReplyMarkup { ) : MessageAction, SimpleRequest<Poll>, ReplyMarkup {
override fun method(): String = "stopPoll" override fun method(): String = "stopPoll"
override fun resultSerializer(): KSerializer<Poll> = Poll.serializer() override fun resultSerializer(): KSerializer<Poll> = Poll.serializer()