mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #357 from gabolaev/fixDownloadingExample
Added file opening mode
This commit is contained in:
commit
e834903bc2
@ -5,7 +5,7 @@ CHAT_ID = 'YOUR CHAT ID'
|
|||||||
|
|
||||||
bot = telebot.TeleBot(TOKEN)
|
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)
|
file_info = bot.get_file(ret_msg.voice.file_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user