mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
StopPoll#replyMarkup
This commit is contained in:
parent
a5ca9c0ce7
commit
495a063f61
@ -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
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user