Answer the question
In order to leave comments, you need to log in
How to play audio stored in Google Drive?
def muxik(message):
user=message.text
if user=='2':
bot.send_message(message.chat.id, 'Загружаю...')
url =open('arabska_muxik.mp3', 'rb')
bot.send_audio(message.chat.id, url)
elif user=='53':
bot.send_message(message.chat.id, 'Загружаю...')
url = open('53.mp3', 'rb')
bot.send_audio(message.chat.id, url)
else:
marku=types.ReplyKeyboardMarkup(resize_keyboard=True)
bn1=types.KeyboardButton('/muxiks')
marku.add(bn1)
bot.send_message(message.chat.id, 'Какой песни нет в базе данных!', reply_markup=marku)
Answer the question
In order to leave comments, you need to log in
Without saving audio in the code folder
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question