all repos — telegram-bot-api @ 189292093b230e278577ae4d528d57bc6c4e2835

Golang bindings for the Telegram Bot API

validate web app hash
crashiura crashiura@gmail.com
Sun, 03 Jul 2022 02:43:22 +0300
commit

189292093b230e278577ae4d528d57bc6c4e2835

parent

ffc28cfbacda3694833103a11da29ca0c315a579

1 files changed, 0 insertions(+), 12 deletions(-)

jump to
M helpers_test.gohelpers_test.go

@@ -248,18 +248,6 @@ t.Fail()

} }) - t.Run("error bad init data", func(t *testing.T) { - token := "5473903189:AAFnHnISQMP5UQQ5MEaoEWvxeiwNgz2CN2U" - initData := "asdfasdfasdfasdfasdf" - result, err := ValidateWebAppData(token, initData) - if err == nil { - t.Fail() - } - if result { - t.Fail() - } - }) - t.Run("error", func(t *testing.T) { token := "5473903189:AAFnHnISQMP5UQQ5MEaoEWvxeiwNgz2CN2U" initData := "asdfasdfasdfasdfasdf"