2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
2019-01-17 02:43:51 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
2018-12-26 08:07:24 +00:00
|
|
|
import kotlinx.serialization.*
|
|
|
|
import kotlinx.serialization.internal.BooleanSerializer
|
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class DeleteMessage(
|
|
|
|
@SerialName(chatIdField)
|
|
|
|
val chatId: ChatIdentifier,
|
|
|
|
@SerialName(messageIdField)
|
|
|
|
val messageId: MessageIdentifier
|
|
|
|
) : SimpleRequest<Boolean> {
|
|
|
|
override fun method(): String = "deleteMessage"
|
|
|
|
|
|
|
|
override fun resultSerializer(): KSerializer<Boolean> = BooleanSerializer
|
|
|
|
}
|