Как отправить случайную песню с помощью бота в телеграм?
elif message.text == 'Случайная песня':
files = os.listdir('songs1')
for x in files:
list = [x]
song = random.choice(list)
bot.send_audio(message.chat.id, song)
В итоге ошибка
(__init__.py:688 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: invalid file HTTP URL specified: Wrong URL host"