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