deeplinking fixes and additions

This commit is contained in:
InsanusMokrassar committed 2022-02-07 18:08:06 +06:00
1 parent b2bc47ec04
commit 1ebaa1c387
3 files changed
+18 -1

No files matched your search

@@ -46,6 +46,9 @@ fun Byte.toChatId(): ChatId = toLong().toChatId()
data class Username(
val username: String
) : ChatIdentifier() {
val usernameWithoutAt
get() = username.dropWhile { it == '@' }
init {
if (!username.startsWith("@")) {
throw IllegalArgumentException("Username must starts with `@`")