mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-21 15:53:47 +00:00
fix of #919
This commit is contained in:
parent
2c602e4434
commit
609c2b5fad
@ -29,6 +29,10 @@ sealed class ChatType {
|
|||||||
object Channel : ChatType() { override val stringified = "channel" }
|
object Channel : ChatType() { override val stringified = "channel" }
|
||||||
@Serializable(ChatTypeSerializer::class)
|
@Serializable(ChatTypeSerializer::class)
|
||||||
class Unknown(override val stringified: String) : ChatType()
|
class Unknown(override val stringified: String) : ChatType()
|
||||||
|
|
||||||
|
override fun toString(): String {
|
||||||
|
return stringified
|
||||||
|
}
|
||||||
}
|
}
|
||||||
val String.asChatType
|
val String.asChatType
|
||||||
get() = when (this) {
|
get() = when (this) {
|
||||||
|
Loading…
Reference in New Issue
Block a user