Deploy: 2026-05-23 02:06:57
This commit is contained in:
@@ -90,8 +90,8 @@ app.post('/api/messages/send', async (req, res) => {
|
||||
return res.status(400).json({ error: 'Missing session_key or phone' });
|
||||
}
|
||||
|
||||
if (!message && !audio) {
|
||||
return res.status(400).json({ error: 'Missing message or audio' });
|
||||
if (!message && !audio && !media_url) {
|
||||
return res.status(400).json({ error: 'Missing message, audio or media_url' });
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user