This commit is contained in:
Alex55 2026-03-23 16:03:50 +02:00
parent f1dd5fb810
commit 7466ce253c
3 changed files with 38 additions and 2 deletions

BIN
images/10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 KiB

View File

@ -232,7 +232,43 @@ def get_product():
return r.json()
print(get_product())
# print(get_product())
def create_message(id_i: int):
token = load_token()
message = (
f"🔹Спасибо за покупку в WST Keys (West Store Trusted Keys)\n\n"
f"🔑 Ваш ключ: 22222\n\n"
"📩 Копия ключа отправлена на вашу электронную почту.\n"
"💬 Если у вас возникнут вопросы — напишите нам.\n"
"⭐️ Нам очень важно ваше мнение, пожалуйста, оставьте отзыв."
)
url = "https://seller.ggsel.com/api_sellers/api/debates/v2"
params = {
"token": token,
"id_i": id_i
}
payload = {
"message": message
}
r = requests.post(url, params=params, json=payload)
if r.status_code == 200:
return {"success": True}
return {
"success": False,
"status": r.status_code,
"response": r.text
}
# пример вызова
create_message(18094706)
# пример
# print(get_chats())

View File

@ -8,7 +8,7 @@
<!-- LOGO -->
<div style="text-align:center; margin-bottom:10px;">
<img src="{{ url_for('main.get_image', filename='1.jpg') }}" alt="logo"
<img src="https://wstkeys.top/images/1.jpg" alt="logo"
style="max-width:200px; height:auto;">
</div>
<!--<h1 style="color:#00cfff; margin-bottom:5px;">{{company_name}}</h1>-->