diff --git a/public/script.ts b/public/script.ts index 5703b14..239ecbd 100644 --- a/public/script.ts +++ b/public/script.ts @@ -210,7 +210,8 @@ class QuixoticApp { } public async convertVideo(videoId: string, title: string, url: string): Promise { - console.log('Convert video called:', { videoId, title, url }); + console.log('🎵 CONVERT VIDEO CALLED:', { videoId, title, url }); + console.log('🔧 Telegram WebApp available:', !!this.tg); const videoElement = (event as any)?.currentTarget as HTMLElement; if (videoElement) { videoElement.classList.add('tg-list-item--converting'); @@ -241,7 +242,8 @@ class QuixoticApp { if (data.audioUrl) { // MP3 conversion successful! - console.log('MP3 conversion successful:', data.audioUrl); + console.log('🎉 MP3 conversion successful:', data.audioUrl); + console.log('🔧 About to send to Telegram, tg available:', !!this.tg); if (this.tg) { // Send to Telegram chat