mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-27 12:04:28 +00:00
23 lines
1011 B
Kotlin
23 lines
1011 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.requests.edit.LiveLocation
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.abstracts.EditChatMessage
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.edit.abstracts.EditReplyMessage
|
|
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()
|
|
}
|