Added file opening mode

This commit is contained in:
George 2017-06-16 02:47:47 +03:00
parent 4b165ba3f1
commit 556a04ca8b
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ CHAT_ID = 'YOUR CHAT ID'
bot = telebot.TeleBot(TOKEN)
ret_msg = bot.send_voice(CHAT_ID, open('tests/test_data/record.ogg'))
ret_msg = bot.send_voice(CHAT_ID, open('tests/test_data/record.ogg', 'rb'))
file_info = bot.get_file(ret_msg.voice.file_id)