Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1559,9 +1559,12 @@ def del_user_senler():
|
|
1559 |
if not vk_user_id or not vk_group_id or not subscription_id:
|
1560 |
return jsonify({"status": "error", "message": "Missing required parameters"}), 400
|
1561 |
|
|
|
|
|
|
|
|
|
1562 |
payload = {
|
1563 |
"vk_user_id": vk_user_id,
|
1564 |
-
'vk_group_id': vk_group_id,
|
1565 |
"subscription_id": subscription_id,
|
1566 |
"access_token": senler_token,
|
1567 |
"v": 2
|
|
|
1559 |
if not vk_user_id or not vk_group_id or not subscription_id:
|
1560 |
return jsonify({"status": "error", "message": "Missing required parameters"}), 400
|
1561 |
|
1562 |
+
# Преобразуем параметры в строки, если это необходимо
|
1563 |
+
vk_user_id = int(vk_user_id)
|
1564 |
+
subscription_id = str(subscription_id)
|
1565 |
+
|
1566 |
payload = {
|
1567 |
"vk_user_id": vk_user_id,
|
|
|
1568 |
"subscription_id": subscription_id,
|
1569 |
"access_token": senler_token,
|
1570 |
"v": 2
|