Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1077,7 +1077,7 @@ def send_whatsjet_message(phone_number: str, message: str, media_type: str = Non
|
|
| 1077 |
if isinstance(media_path, str) and media_path.startswith("http"):
|
| 1078 |
payload = {
|
| 1079 |
"phone_number": phone_number,
|
| 1080 |
-
"
|
| 1081 |
"media_type": media_type,
|
| 1082 |
"media_url": media_path,
|
| 1083 |
"media_filename": filename or os.path.basename(media_path)
|
|
|
|
| 1077 |
if isinstance(media_path, str) and media_path.startswith("http"):
|
| 1078 |
payload = {
|
| 1079 |
"phone_number": phone_number,
|
| 1080 |
+
"caption": message, # Use 'caption' instead of 'message_body'
|
| 1081 |
"media_type": media_type,
|
| 1082 |
"media_url": media_path,
|
| 1083 |
"media_filename": filename or os.path.basename(media_path)
|