DmitrMakeev commited on
Commit
3a9ea4d
1 Parent(s): 2b0b494

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1628,11 +1628,18 @@ def gc_forms():
1628
 
1629
 
1630
  def verify_phone_number(phone_number):
1631
- verifikation_start = os.getenv('verifikation_start')
 
1632
 
1633
  if verifikation_start == "1":
1634
- # Собираем полный URL из переменных окружения
 
 
 
 
 
1635
  full_url_ver = f"{wa_url}{wa_ak}{ws_url_ver}{wa_api_key}"
 
1636
 
1637
  # Создаем payload для запроса
1638
  payload = json.dumps({
 
1628
 
1629
 
1630
  def verify_phone_number(phone_number):
1631
+ verifikation_start = "1"
1632
+ print(f"verifikation_start: {verifikation_start}")
1633
 
1634
  if verifikation_start == "1":
1635
+ # Переменные окружения для сборки URL
1636
+ wa_url = "https://api.green-api.com/"
1637
+ wa_ak = "waInstance1101952913/"
1638
+ ws_url_ver = "checkWhatsapp/"
1639
+ wa_api_key = "fb4986a9d9cb40ef9be6c7b08cb9c98b7a3b1dc8c6834b0b92"
1640
+
1641
  full_url_ver = f"{wa_url}{wa_ak}{ws_url_ver}{wa_api_key}"
1642
+ print(f"Full URL: {full_url_ver}")
1643
 
1644
  # Создаем payload для запроса
1645
  payload = json.dumps({