mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
9 lines
209 B
Kotlin
9 lines
209 B
Kotlin
|
package dev.inmo.tgbotapi.types.MessageEntity
|
||
|
|
||
|
@Deprecated("Redundant and will be removed soon")
|
||
|
fun String.removeLeading(word: String) = if (startsWith(word)) {
|
||
|
substring(word.length)
|
||
|
} else {
|
||
|
this
|
||
|
}
|