I have a problem about file messages in python telegram bot. How can I receive file and read that file ? Or save it.
Question posted in Telegram API
A comprehensive official documentation can be found here.
A comprehensive official documentation can be found here.
2
Answers
You can:
Document
File
object from the update (inside the listener usingget_file
).download()
to download the documentHere a sample code to get you started:
Here is some changes for python-telegram-bot v20.