1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00
This commit is contained in:
InsanusMokrassar 2024-11-11 12:39:42 +06:00
parent 2c602e4434
commit 609c2b5fad

View File

@ -29,6 +29,10 @@ sealed class ChatType {
object Channel : ChatType() { override val stringified = "channel" }
@Serializable(ChatTypeSerializer::class)
class Unknown(override val stringified: String) : ChatType()
override fun toString(): String {
return stringified
}
}
val String.asChatType
get() = when (this) {