27 lines
1.1 KiB
Kotlin
27 lines
1.1 KiB
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.requests.edit.LiveLocation
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardMarkup
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.RawMessage
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.abstracts.*
|
|
import kotlinx.serialization.*
|
|
|
|
// TODO:: Replace return type by RawMessage or Boolean (as in documentation)
|
|
@Serializable
|
|
data class EditChatMessageLiveLocation(
|
|
@SerialName(chatIdField)
|
|
override val chatId: ChatIdentifier,
|
|
@SerialName(messageIdField)
|
|
override val messageId: MessageIdentifier,
|
|
@SerialName(latitudeField)
|
|
override val latitude: Double,
|
|
@SerialName(longitudeField)
|
|
override val longitude: Double,
|
|
@SerialName(replyMarkupField)
|
|
@Optional
|
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
|
) : EditChatMessage, EditReplyMessage, EditLocationMessage {
|
|
override fun method(): String = "editMessageLiveLocation"
|
|
override fun resultSerializer(): KSerializer<RawMessage> = RawMessage.serializer()
|
|
}
|