mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-10-31 21:33:46 +00:00
15 lines
390 B
Kotlin
15 lines
390 B
Kotlin
|
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)
|