1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update WebApp() functions

Adjusted function name case to pythonic style.
This commit is contained in:
Soham Datta 2022-05-30 17:18:03 +05:30 committed by GitHub
parent 82f056e88a
commit 4401780ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,7 +524,7 @@ def antiflood(function, *args, **kwargs):
return msg
def parse_WebApp_data(token: str, raw_init_data: str):
def parse_webapp_data(token: str, raw_init_data: str):
is_valid = validate_WebApp_data(token, raw_init_data)
if not is_valid:
return False
@ -540,7 +540,7 @@ def parse_WebApp_data(token: str, raw_init_data: str):
return result
def validate_WebApp_data(token, raw_init_data):
def validate_webapp_data(token, raw_init_data):
try:
parsed_data = dict(parse_qsl(raw_init_data))
except ValueError: