mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-06 00:29:39 +00:00
fix in javaLocale extension
This commit is contained in:
@@ -2,6 +2,6 @@ package com.github.insanusmokrassar.TelegramBotAPI.types
|
||||
|
||||
import java.util.*
|
||||
|
||||
fun User.javaLocale(): Locale? = languageCode ?.let {
|
||||
fun CommonUser.javaLocale(): Locale? = languageCode ?.let {
|
||||
Locale.forLanguageTag(it)
|
||||
}
|
||||
|
Reference in New Issue
Block a user