fix of checkWebAppData method call

This commit is contained in:
InsanusMokrassar 2022-05-18 17:46:50 +06:00
parent 803c5fd664
commit 389d96f323

View File

@ -68,7 +68,7 @@ suspend fun main(vararg args: String) {
val requestBody = call.receiveText()
val webAppCheckData = Json { }.decodeFromString(WebAppDataWrapper.serializer(), requestBody)
val isSafe = telegramBotAPIUrlsKeeper.checkWebAppLink(webAppCheckData.data, webAppCheckData.hash)
val isSafe = telegramBotAPIUrlsKeeper.checkWebAppData(webAppCheckData.data, webAppCheckData.hash)
call.respond(HttpStatusCode.OK, isSafe.toString())
}