name fix
This commit is contained in:
@@ -250,11 +250,11 @@ export class QuixoticBot {
|
||||
}
|
||||
|
||||
// Public method for external API calls
|
||||
public async sendAudioFile(chatId: number, audioUrl: string, title: string): Promise<void> {
|
||||
return this.sendAudioFileInternal(chatId, audioUrl, title);
|
||||
public async sendAudioFile(chatId: number, audioUrl: string, title: string, performer?: string, thumbnail?: string): Promise<void> {
|
||||
return this.sendAudioFileInternal(chatId, audioUrl, title, performer, thumbnail);
|
||||
}
|
||||
|
||||
private async sendAudioFileInternal(chatId: number, audioUrl: string, title: string): Promise<void> {
|
||||
private async sendAudioFileInternal(chatId: number, audioUrl: string, title: string, performer?: string, thumbnail?: string): Promise<void> {
|
||||
try {
|
||||
console.log(`📤 Sending: ${title} to chat ${chatId}`);
|
||||
|
||||
@@ -262,8 +262,9 @@ export class QuixoticBot {
|
||||
try {
|
||||
await this.bot.sendAudio(chatId, audioUrl, {
|
||||
title: title,
|
||||
performer: 'SoundCloud',
|
||||
performer: performer || 'SoundCloud',
|
||||
caption: `🎵 ${title}`,
|
||||
thumbnail: thumbnail,
|
||||
parse_mode: undefined
|
||||
});
|
||||
console.log(`✅ Audio sent: ${title}`);
|
||||
|
||||
Reference in New Issue
Block a user