Last active
February 20, 2022 09:17
-
-
Save Endogen/9b463dca4168f5e20734528afaa401d4 to your computer and use it in GitHub Desktop.
Download a file in Python-Telegram-Bot library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_id = message.voice.file_id | |
newFile = bot.get_file(file_id) | |
newFile.download('voice.ogg') |
Thanks a lot for this info, could you help me how can I know the status of downloads when I dwonload a file from telegram bot.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
G