elif message.text == 'Случайная песня':
files = os.listdir('songs1')
for x in files:
list = [x]
song = random.choice(list)
bot.send_audio(message.chat.id, song)
elif message.text == 'Случайная песня':
files = os.listdir('songs1')
list = []
for x in files:
list.append(x)
song = random.choice(list)
bot.send_audio(message.chat.id, song)
elif message.text == 'Случайная песня':
song = random.choice([x for x in os.listdir('songs1')])
bot.send_audio(message.chat.id, song)
bot.send_audio(message.chat.id, f'songs1/{song}')
elif message.text == 'Случайная песня':
song_path = os.path.join(os.getcwd(), "songs1", random.choice(os.listdir("songs1")))
bot.send_audio(message.chat.id, open(song_path, "rb"))