2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests.edit.LiveLocation
|
|
|
|
|
2019-01-17 02:43:51 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.abstracts.EditChatMessage
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.abstracts.EditReplyMessage
|
2018-12-26 08:07:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardMarkup
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.RawMessage
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class StopChatMessageLiveLocation(
|
|
|
|
@SerialName(chatIdField)
|
|
|
|
override val chatId: ChatIdentifier,
|
|
|
|
@SerialName(messageIdField)
|
|
|
|
override val messageId: MessageIdentifier,
|
|
|
|
@SerialName(replyMarkupField)
|
|
|
|
@Optional
|
|
|
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
|
|
|
) : EditChatMessage, EditReplyMessage {
|
|
|
|
override fun method(): String = "stopMessageLiveLocation"
|
|
|
|
override fun resultSerializer(): KSerializer<RawMessage> = RawMessage.serializer()
|
|
|
|
}
|