21 lines
935 B
Kotlin
21 lines
935 B
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 StopInlineMessageLiveLocation(
|
|
@SerialName(inlineMessageIdField)
|
|
override val inlineMessageId: InlineMessageIdentifier,
|
|
@SerialName(replyMarkupField)
|
|
@Optional
|
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
|
) : EditInlineMessage, EditReplyMessage {
|
|
override fun method(): String = "stopMessageLiveLocation"
|
|
override fun resultSerializer(): KSerializer<RawMessage> = RawMessage.serializer()
|
|
}
|