PlaguPoster/common/src/commonMain/kotlin/ShortMessageInfo.kt

15 lines
390 B
Kotlin
Raw Normal View History

2022-09-04 07:27:35 +00:00
package dev.inmo.plaguposter.common
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.MessageIdentifier
import dev.inmo.tgbotapi.types.message.abstracts.Message
import kotlinx.serialization.Serializable
@Serializable
data class ShortMessageInfo(
val chatId: ChatId,
val messageId: MessageIdentifier
)
fun Message.short() = ShortMessageInfo(chat.id, messageId)