code cleanup

optimized imports here and there, made CustomBot working as intended
This commit is contained in:
bpavuk committed 2024-07-10 19:25:00 +03:00
1 parent 9fb6570d21
commit 7964dc4eea
25 files changed
+141 -196

No files matched your search

+2 -1
View File
@@ -26,6 +26,7 @@ fun HTMLElement.log(text: String) {
appendElement("p", {})
}
@OptIn(ExperimentalUnsignedTypes::class)
fun main() {
console.log("Web app started")
val client = HttpClient()
@@ -38,7 +39,7 @@ fun main() {
scope.launchSafelyWithoutExceptions {
val response = client.post("$baseUrl/check") {
setBody(
Json { }.encodeToString(
Json.encodeToString(
WebAppDataWrapper.serializer(),
WebAppDataWrapper(webApp.initData, webApp.initDataUnsafe.hash)
)