getJsonString - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / getJsonString

getJsonString

suspend fun TelegramFlow.getJsonString(jsonValue: JsonValue?): Text

Suspend function, which converts a JsonValue object to corresponding JSON-serialized string. This is an offline method. Can be called before authorization. Can be called synchronously.

Parameters

jsonValue - The JsonValue object.

Return Text Contains some text.