mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2025-09-15 21:19:30 +00:00
added ratings
This commit is contained in:
14
common/src/commonMain/kotlin/ShortMessageInfo.kt
Normal file
14
common/src/commonMain/kotlin/ShortMessageInfo.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
4
common/src/commonMain/kotlin/Symbols.kt
Normal file
4
common/src/commonMain/kotlin/Symbols.kt
Normal file
@@ -0,0 +1,4 @@
|
||||
package dev.inmo.plaguposter.common
|
||||
|
||||
const val SuccessfulSymbol = "✓"
|
||||
const val UnsuccessfulSymbol = "❌"
|
Reference in New Issue
Block a user