getLanguagePackString - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / getLanguagePackString

getLanguagePackString

suspend fun TelegramFlow.getLanguagePackString(languagePackDatabasePath: String?, localizationTarget: String?, languagePackId: String?, key: String?): LanguagePackStringValue

Suspend function, which returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. This is an offline method. Can be called before authorization. Can be called synchronously.

Parameters

languagePackDatabasePath - Path to the language pack database in which strings are stored.

localizationTarget - Localization target to which the language pack belongs.

languagePackId - Language pack identifier.

key - Language pack key of the string to be returned.

Return LanguagePackStringValue This class is an abstract base class.