This commit is contained in:
Andrey Kondratev
2025-08-29 14:37:07 +05:00
parent 4dacc1aeb8
commit 816b0ec672
3 changed files with 47 additions and 3 deletions

View File

@@ -245,11 +245,13 @@ class QuixoticApp {
if (this.tg) {
// Send to Telegram chat
this.tg.sendData(JSON.stringify({
const payload = {
action: 'send_audio',
audioUrl: data.audioUrl,
title: title
}));
};
console.log('📤 Sending data to Telegram:', payload);
this.tg.sendData(JSON.stringify(payload));
this.showMessage('✓ MP3 готов! Отправляем в чат...', 'success');
} else {
// For testing in browser - download file