Closed prog-ape closed 1 year ago
https://core.telegram.org/bots/webapps#validating-data-received-via-the-web-app: "with the secret key which is the HMAC-SHA-256 signature of the bot's token with the constant string WebAppData
used as a key."
You use sha256(botToken)
instead of that.
你用
sha256(botToken)
而不是那个。
Thank you, problem solved
public class CheckTelegramAuth { private final String botToken, dataCheck, hash; private final long authDate;
}