mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 23:29:33 +00:00
RawMessageEntity will not throw exception
This commit is contained in:
@@ -32,7 +32,7 @@ internal data class RawMessageEntity(
|
||||
"text_mention" -> TextMentionMessageEntity(offset, length, sourceSubstring, user ?: throw IllegalStateException("User must not be null for text mention"))
|
||||
"underline" -> UnderlineMessageEntity(offset, length, sourceSubstring)
|
||||
"strikethrough" -> StrikethroughMessageEntity(offset, length, sourceSubstring)
|
||||
else -> throw IllegalArgumentException("Unknown type of message entity")
|
||||
else -> RegularTextMessageEntity(offset, length, sourceSubstring)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user