mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1614 from Badiboy/master
parse_web_app_data function fix
This commit is contained in:
commit
0b5b7ad39a
@ -6,7 +6,6 @@ import threading
|
|||||||
import traceback
|
import traceback
|
||||||
from typing import Any, Callable, List, Dict, Optional, Union
|
from typing import Any, Callable, List, Dict, Optional, Union
|
||||||
import hmac
|
import hmac
|
||||||
import json
|
|
||||||
from hashlib import sha256
|
from hashlib import sha256
|
||||||
from urllib.parse import parse_qsl
|
from urllib.parse import parse_qsl
|
||||||
|
|
||||||
@ -525,7 +524,7 @@ def antiflood(function, *args, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
def parse_web_app_data(token: str, raw_init_data: str):
|
def parse_web_app_data(token: str, raw_init_data: str):
|
||||||
is_valid = validate_WebApp_data(token, raw_init_data)
|
is_valid = validate_web_app_data(token, raw_init_data)
|
||||||
if not is_valid:
|
if not is_valid:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user