mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-26 03:28:10 +00:00
17 lines
336 B
Kotlin
17 lines
336 B
Kotlin
|
package dev.inmo.tgbotapi.webapps
|
||
|
|
||
|
import kotlin.js.json
|
||
|
|
||
|
external interface OpenLinkParams {
|
||
|
@JsName("try_instant_view")
|
||
|
val tryInstantView: Boolean
|
||
|
}
|
||
|
|
||
|
fun OpenLinkParams(
|
||
|
tryInstantView: Boolean
|
||
|
) = json(
|
||
|
*listOfNotNull(
|
||
|
"try_instant_view" to tryInstantView
|
||
|
).toTypedArray()
|
||
|
).unsafeCast<OpenLinkParams>()
|