*Хэндлер*
*Функция*:
await mybot.send_message(message.chat.id, 'Получаю аудио...')
rand_1_to_3 = random.randint(0, 2)
if rand_1_to_3 == 0:
await mybot.send_audio(message.chat.id, open('settings/first_relax.mp3', 'rb', audioname='The Chords — Sh-boom'))
elif rand_1_to_3 == 1:
await mybot.send_audio(message.chat.id, open('settings/second_relax.mp3', 'rb', audioname='J.S. Bach – Orchestral Suite No. 3 in D Major, BWV 1068 - II. Air'))
elif rand_1_to_3 == 2:
await mybot.send_audio(message.chat.id, open('settings/third_relax.mp3', 'rb', audioname='Erik Satie – Gymnopédie No.3'))
Так не работает, и если вынести из open() аргумент filename, то тоже не работает, как можно сделать?