fix
This commit is contained in:
@@ -196,7 +196,7 @@ export class QuixoticBot {
|
||||
console.log('🎵 Audio action from callback query');
|
||||
await this.sendAudioFileInternal(query.message.chat.id, data.audioUrl, data.title);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch {
|
||||
console.log('Callback query data is not JSON, ignoring');
|
||||
}
|
||||
}
|
||||
@@ -347,7 +347,7 @@ export class QuixoticBot {
|
||||
// Delete status message after success
|
||||
try {
|
||||
await this.bot.deleteMessage(chatId, statusMsg.message_id);
|
||||
} catch (delError) {
|
||||
} catch {
|
||||
console.log('Could not delete status message (not critical)');
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ export class QuixoticBot {
|
||||
// Delete status message after success
|
||||
try {
|
||||
await this.bot.deleteMessage(chatId, statusMsg.message_id);
|
||||
} catch (delError) {
|
||||
} catch {
|
||||
console.log('Could not delete status message (not critical)');
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ export class QuixoticBot {
|
||||
// Send fallback message with direct link
|
||||
try {
|
||||
await this.bot.sendMessage(chatId,
|
||||
`❌ Не удалось отправить файл автоматически.\n\n` +
|
||||
'❌ Не удалось отправить файл автоматически.\n\n' +
|
||||
`🎵 *${title}*\n\n` +
|
||||
`📥 Скачайте напрямую: [Ссылка на MP3](${audioUrl})\n\n` +
|
||||
`_Ошибка: ${error.message}_`,
|
||||
|
||||
Reference in New Issue
Block a user