mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix typo in WebApp()
functions
This commit is contained in:
parent
4401780ba9
commit
42ce47914d
@ -524,7 +524,7 @@ def antiflood(function, *args, **kwargs):
|
|||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
|
||||||
def parse_webapp_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_WebApp_data(token, raw_init_data)
|
||||||
if not is_valid:
|
if not is_valid:
|
||||||
return False
|
return False
|
||||||
@ -540,7 +540,7 @@ def parse_webapp_data(token: str, raw_init_data: str):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
def validate_webapp_data(token, raw_init_data):
|
def validate_web_app_data(token, raw_init_data):
|
||||||
try:
|
try:
|
||||||
parsed_data = dict(parse_qsl(raw_init_data))
|
parsed_data = dict(parse_qsl(raw_init_data))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user