DmitrMakeev
commited on
Commit
•
655a8ab
1
Parent(s):
1583699
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,8 @@ gc_api = os.getenv('gc_api')
|
|
30 |
|
31 |
wa_url = os.getenv('wa_url')
|
32 |
wa_api_key = os.getenv('wa_api_key')
|
|
|
|
|
33 |
|
34 |
|
35 |
up_db = os.getenv('up_db')
|
@@ -369,7 +371,7 @@ def clean_phone_number(phone):
|
|
369 |
def send_message(chat_id, message):
|
370 |
#base_url = os.getenv('wa_url')
|
371 |
#api_key = os.getenv('wa_api_key')
|
372 |
-
full_url = f"{wa_url}{wa_api_key}"
|
373 |
payload = {
|
374 |
"chatId": chat_id,
|
375 |
"message": message
|
|
|
30 |
|
31 |
wa_url = os.getenv('wa_url')
|
32 |
wa_api_key = os.getenv('wa_api_key')
|
33 |
+
wa_ak = os.getenv('ws_ak')
|
34 |
+
ws_url_mes = "/sendMessage/"
|
35 |
|
36 |
|
37 |
up_db = os.getenv('up_db')
|
|
|
371 |
def send_message(chat_id, message):
|
372 |
#base_url = os.getenv('wa_url')
|
373 |
#api_key = os.getenv('wa_api_key')
|
374 |
+
full_url = f"{wa_url}{wa_ak}{ws_url_mes}{wa_api_key}"
|
375 |
payload = {
|
376 |
"chatId": chat_id,
|
377 |
"message": message
|