DmitrMakeev
commited on
Commit
•
5eab77b
1
Parent(s):
36875a8
Update app.py
Browse files
app.py
CHANGED
@@ -1526,22 +1526,7 @@ mapp_templates = {
|
|
1526 |
DATABASE_NAME3 = 'data_gc.db'
|
1527 |
|
1528 |
|
1529 |
-
def verify_phone_number(phone_number):
|
1530 |
-
if verifikation_start == "1":
|
1531 |
-
full_url_ver = f"{wa_url}{wa_ak}{ws_url_ver}{wa_api_key}"
|
1532 |
-
|
1533 |
-
payload = json.dumps({"phoneNumber": phone_number})
|
1534 |
-
headers = {'Content-Type': 'application/json'}
|
1535 |
|
1536 |
-
response = requests.post(full_url_ver, headers=headers, data=payload)
|
1537 |
-
|
1538 |
-
if response.status_code == 200:
|
1539 |
-
response_body = response.json()
|
1540 |
-
return response_body.get('existsWhatsapp', 'false')
|
1541 |
-
else:
|
1542 |
-
return "Error"
|
1543 |
-
else:
|
1544 |
-
return "false"
|
1545 |
|
1546 |
def add_or_update_contact(contact_data):
|
1547 |
conn = sqlite3.connect(DATABASE_NAME3)
|
|
|
1526 |
DATABASE_NAME3 = 'data_gc.db'
|
1527 |
|
1528 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1529 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1530 |
|
1531 |
def add_or_update_contact(contact_data):
|
1532 |
conn = sqlite3.connect(DATABASE_NAME3)
|