From aa6e5b22841f0de32ec1c19c1618ebd1f4ace94d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 4 May 2022 12:58:06 +0600 Subject: [PATCH] fix of WebAppInitData#queryId js name --- CHANGELOG.md | 3 +++ .../jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppInitData.kt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 665fb5c847..50bdf79304 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 0.38.21 +* `WebApps`: + * `WebAppInitData#queryId` now have correct js name of field + ## 0.38.20 * `BehaviourBuilder FSM`: diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppInitData.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppInitData.kt index a00181ab91..a561cfb89a 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppInitData.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/WebAppInitData.kt @@ -1,9 +1,9 @@ package dev.inmo.tgbotapi.webapps -import dev.inmo.tgbotapi.types.MilliSeconds -import dev.inmo.tgbotapi.types.WebAppQueryId +import dev.inmo.tgbotapi.types.* external interface WebAppInitData { + @JsName("query_id") val queryId: WebAppQueryId? val user: WebAppUser?