mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-02 14:49:47 +00:00
remove checking of webapp data from webapp module due to its existing in core
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
package dev.inmo.tgbotapi.webapps
|
|
||||||
|
|
||||||
import dev.inmo.tgbotapi.utils.*
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param rawData Data from [dev.inmo.tgbotapi.webapps.WebApp.initData]
|
|
||||||
* @param hash Data from [dev.inmo.tgbotapi.webapps.WebApp.initDataUnsafe] from the field [dev.inmo.tgbotapi.webapps.WebAppInitData.hash]
|
|
||||||
*/
|
|
||||||
fun TelegramAPIUrlsKeeper.checkWebAppLink(rawData: String, hash: String) = rawData.hmacSha256(webAppDataSecretKey).hex() == hash
|
|
Reference in New Issue
Block a user